示例#1
0
 internal static bool IsString(this Type type)
 {
     return(Type.GetTypeCode(type) == TypeCode.String);
 }
示例#2
0
 internal static bool IsDateTime(this Type type)
 {
     return(Type.GetTypeCode(type) == TypeCode.DateTime);
 }
示例#3
0
 internal static bool IsCharacter(this Type type)
 {
     return(Type.GetTypeCode(type) == TypeCode.Char);
 }
示例#4
0
 internal static bool IsDecimal(this Type type)
 {
     return(Type.GetTypeCode(type) == TypeCode.Decimal);
 }
示例#5
0
 internal static bool IsBoolean(this Type type)
 {
     return(Type.GetTypeCode(type) == TypeCode.Boolean);
 }