Check if a generic type parameter is a nullable type
suggest changepublic bool IsTypeNullable<T>()
{
return Nullable.GetUnderlyingType( typeof(T) )!=null;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents