C# Language Check if a generic type parameter is a nullable type


Example

public bool IsTypeNullable<T>()
{
    return Nullable.GetUnderlyingType( typeof(T) )!=null;
}