G Guest Apr 3, 2006 #1 How can i tell if a type is nullable or not.. is ther an IsNullable() function somewhere?
M Mattias Sjögren Apr 3, 2006 #3 How can i tell if a type is nullable or not.. is ther an IsNullable() function somewhere? Click to expand... Something like Type t = ... bool nullable = t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>); Mattias
How can i tell if a type is nullable or not.. is ther an IsNullable() function somewhere? Click to expand... Something like Type t = ... bool nullable = t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>); Mattias