diff --git a/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs b/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs index 9c7b27a2..cb37f805 100644 --- a/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs +++ b/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs @@ -8681,7 +8681,7 @@ Path '', line 1, position 1."); } #endif -#if !(NET20 || NET35 || PORTABLE40) +#if !(NET20 || NET35) [Test] public void HashSetInterface() { diff --git a/Src/Newtonsoft.Json/Serialization/JsonArrayContract.cs b/Src/Newtonsoft.Json/Serialization/JsonArrayContract.cs index 1dafcb04..b39ca77e 100644 --- a/Src/Newtonsoft.Json/Serialization/JsonArrayContract.cs +++ b/Src/Newtonsoft.Json/Serialization/JsonArrayContract.cs @@ -167,7 +167,7 @@ namespace Newtonsoft.Json.Serialization CreatedType = typeof(List<>).MakeGenericType(CollectionItemType); } -#if !(NET20 || NET35 || PORTABLE40) +#if !(NET20 || NET35) if (ReflectionUtils.IsGenericDefinition(underlyingType, typeof(ISet<>))) { CreatedType = typeof(HashSet<>).MakeGenericType(CollectionItemType);