-Changed portable assembly to .NET 4.5, Silverlight 5, Win8, WP8
-Fixed incorrect namespace when converting XML to JSON
This commit is contained in:
@@ -86,7 +86,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
if (IsTypeGenericCollectionInterface(UnderlyingType))
|
||||
CreatedType = ReflectionUtils.MakeGenericType(typeof(List<>), CollectionItemType);
|
||||
#if !(PORTABLE || NET20 || NET35 || WINDOWS_PHONE)
|
||||
#if !(NET20 || NET35 || WINDOWS_PHONE)
|
||||
else if (IsTypeGenericSetnterface(UnderlyingType))
|
||||
CreatedType = ReflectionUtils.MakeGenericType(typeof(HashSet<>), CollectionItemType);
|
||||
#endif
|
||||
@@ -155,7 +155,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
|| genericDefinition == typeof(IEnumerable<>));
|
||||
}
|
||||
|
||||
#if !(PORTABLE || NET20 || NET35 || WINDOWS_PHONE)
|
||||
#if !(NET20 || NET35 || WINDOWS_PHONE)
|
||||
private bool IsTypeGenericSetnterface(Type type)
|
||||
{
|
||||
if (!type.IsGenericType())
|
||||
|
||||
Reference in New Issue
Block a user