NuGet.TypeHelper.TypeAllowsNull C# (CSharp) Method

TypeAllowsNull() public static method

public static TypeAllowsNull ( Type type ) : bool
type System.Type
return bool
        public static bool TypeAllowsNull(Type type)
        {
            return Nullable.GetUnderlyingType(type) != null || !type.IsValueType;
        }