Skip to content

Commit

Permalink
Restore DynamicDictionary
Browse files Browse the repository at this point in the history
It looks like it was accidentally removed from the project files before
3.0.0 in fd6de51. We'll just restore it for now because it sounds useful
and it is already building in the .NET Core build.
  • Loading branch information
jonorossi committed Jul 17, 2016
1 parent de7d2f2 commit 76c1b4a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Castle.Core.Tests/Castle.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
<Compile Include="BugsReported\DynProxy159.cs" />
<Compile Include="BugsReported\DynProxy145_SynchronizationContext.cs" />
<Compile Include="Components.DictionaryAdapter.Tests\CustomAssert.cs" />
<Compile Include="Components.DictionaryAdapter.Tests\DynamicDictionaryTests.cs" />
<Compile Include="Components.DictionaryAdapter.Tests\IPhoneWithFetch.cs" />
<Compile Include="Components.DictionaryAdapter.Tests\NameValueCollectionAdapterTests.cs" />
<Compile Include="DynamicProxy.Tests\Classes\ClassWithMethodsWithAllKindsOfOptionalParameters.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if !DOTNET35

namespace Castle.Components.DictionaryAdapter.Tests
{
using System.Collections.Generic;

using NUnit.Framework;

#if !DOTNET35
public class DynamicDictionaryTests
{
[Test]
Expand Down Expand Up @@ -61,5 +62,6 @@ public void Can_read_non_existing_value_from_dictionary_via_dynamic_object()
Assert.IsNull(adapter.Name);
}
}
#endif
}
}

#endif
1 change: 1 addition & 0 deletions src/Castle.Core/Castle.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
<Compile Include="Compatibility\IntrospectionExtensions.cs" />
<Compile Include="Compatibility\NetCoreReflectionExtensions.cs" />
<Compile Include="Compatibility\RuntimeReflectionExtensions.cs" />
<Compile Include="Components.DictionaryAdapter\DynamicDictionary.cs" />
<Compile Include="Components.DictionaryAdapter\Util\ListProjectionDebugView.cs" />
<Compile Include="Components.DictionaryAdapter\Util\ICollectionAdapter.cs" />
<Compile Include="Components.DictionaryAdapter\Attributes\ReferenceAttribute.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#if !DOTNET35

namespace Castle.Components.DictionaryAdapter
{
#if !DOTNET35
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
Expand Down Expand Up @@ -50,5 +51,6 @@ public override bool TrySetMember(SetMemberBinder binder, object value)
return true;
}
}
#endif
}
}

#endif

0 comments on commit 76c1b4a

Please sign in to comment.