Below Extension method provides facility to check whether the type is nullable type or not..
////// Determine of specified type is nullable /// public static bool IsNullable(Type t) { return !t.IsValueType || (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>)); }
9:43 AM
Rajesh Rolen
0 comments:
Post a Comment