Permalink
Browse files

fixed IsNullableType of WinRT

  • Loading branch information...
1 parent 4c17649 commit c7cd0051f27fbde80b0c4c085006d2da239b13db @prabirshrestha committed Mar 17, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/ReflectionUtils/ReflectionUtils.cs
@@ -98,7 +98,13 @@ public static bool IsTypeDictionary(Type type)
public static bool IsNullableType(Type type)
{
- return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
+ return
+#if NETFX_CORE
+ type.GetTypeInfo().IsGenericType
+#else
+ type.IsGenericType
+#endif
+ && type.GetGenericTypeDefinition() == typeof (Nullable<>);
}
public static object ToNullableType(object obj, Type nullableType)

0 comments on commit c7cd005

Please sign in to comment.