Пример #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);
 }