public static class TypeUtils { /// <summary> /// Object 转为 强类型 /// </summary> public static T ConvertType<T>(object value) { if (value == null) return default(T); var typeConverter = TypeDescriptor.GetConverter(typeof(T)); if (typeConve…
import java.math.BigDecimal; import java.math.BigInteger; public class MathUtils { public static BigDecimal getBigDecimal( Object value ) { BigDecimal ret = null; if( value != null ) { if( value instanceof BigDecimal ) { ret = (BigDecimal) value; } e…