diff options
Diffstat (limited to 'Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs')
-rw-r--r-- | Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs b/Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs index 4d08840..e667637 100644 --- a/Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs +++ b/Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs @@ -258,7 +258,7 @@ namespace Newtonsoft.Json.Utilities private static bool IsCompatibleObject(object value)
{
- if (!(value is T) && (value != null || (typeof(T).IsValueType && !ReflectionUtils.IsNullableType(typeof(T)))))
+ if (!(value is T) && (value != null || (typeof(T).IsValueType() && !ReflectionUtils.IsNullableType(typeof(T)))))
return false;
return true;
|