public static bool IsFloat(Type t) { var code = Type.GetTypeCode(Store.GetTypeWithoutNullability(t)); return(code == TypeCode.Decimal || code == TypeCode.Double || code == TypeCode.Single); }
public static bool IsInteger(Type t) { var code = Type.GetTypeCode(Store.GetTypeWithoutNullability(t)); return(code == TypeCode.Byte || code == TypeCode.Int16 || code == TypeCode.Int32 || code == TypeCode.Int64 || code == TypeCode.SByte || code == TypeCode.UInt16 || code == TypeCode.UInt32 || code == TypeCode.UInt64); }
public static bool IsNumeric(Type t) { var code = Type.GetTypeCode(Store.GetTypeWithoutNullability(t)); return(code == TypeCode.Byte || code == TypeCode.Decimal || code == TypeCode.Double || code == TypeCode.Int16 || code == TypeCode.Int32 || code == TypeCode.Int64 || code == TypeCode.SByte || code == TypeCode.Single || code == TypeCode.UInt16 || code == TypeCode.UInt32 || code == TypeCode.UInt64); }
public static bool IsBoolean(Type t) { var code = Type.GetTypeCode(Store.GetTypeWithoutNullability(t)); return(code == TypeCode.Boolean); }
public static bool IsDate(Type t) { var code = Type.GetTypeCode(Store.GetTypeWithoutNullability(t)); return(code == TypeCode.DateTime); }