static private category ( object x ) : Category | ||
x | object | |
Результат | Category |
static Category category(object x)
{
Type xc = x.GetType();
if (xc == typeof(Int32) || xc == typeof(Int64))
return Category.Integer;
else if (xc == typeof(float) || xc == typeof(double))
return Category.Floating;
else if (xc == typeof(BigInt))
return Category.Integer;
else if (xc == typeof(Ratio))
return Category.Ratio;
else if (xc == typeof(BigDecimal))
return Category.Decimal;
else
return Category.Integer;
}