Update TypeHelpers.cs

pull/3/head
Ogoun 2 years ago
parent 7321ea1392
commit 3b3224b931

@ -47,28 +47,6 @@ namespace ZeroLevel.Services.Reflection
return false;
}
}
public static bool IsNumericType(Type type)
{
switch (Type.GetTypeCode(type))
{
case TypeCode.Byte:
case TypeCode.SByte:
case TypeCode.UInt16:
case TypeCode.UInt32:
case TypeCode.UInt64:
case TypeCode.Int16:
case TypeCode.Int32:
case TypeCode.Int64:
case TypeCode.Decimal:
case TypeCode.Double:
case TypeCode.Single:
return true;
default:
return false;
}
}
public static bool IsNumericTypeWithFloating(Type type)
{
switch (Type.GetTypeCode(type))

Loading…
Cancel
Save

Powered by TurnKey Linux.