Properly handle ISet on Portable40 config

Up until now ISet members would not be
properly deserialized, getting an exception
that ISet cannot be instantiated.
This commit is contained in:
timotei
2016-02-28 22:11:54 +02:00
parent 95d8537ae4
commit ce480a21f4
2 changed files with 2 additions and 2 deletions
@@ -8681,7 +8681,7 @@ Path '', line 1, position 1.");
}
#endif
#if !(NET20 || NET35 || PORTABLE40)
#if !(NET20 || NET35)
[Test]
public void HashSetInterface()
{
@@ -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);