private static bool FromStringToNullableNumericType(string from, Type innerType, out object result) { var valueUpdated = true; result = null; if (innerType == TypeClass.ByteClass) { result = NumericConv.StringToNullableByte(from); } else if (innerType == TypeClass.SByteClass) { result = NumericConv.StringToNullableSByte(from); } else if (innerType == TypeClass.Int16Class) { result = NumericConv.StringToNullableInt16(from); } else if (innerType == TypeClass.UInt16Class) { result = NumericConv.StringToNullableInt16(from); } else if (innerType == TypeClass.Int32Class) { result = NumericConv.StringToNullableInt32(from); } else if (innerType == TypeClass.UInt32Class) { result = NumericConv.StringToNullableUInt32(from); } else if (innerType == TypeClass.Int64Class) { result = NumericConv.StringToNullableInt64(from); } else if (innerType == TypeClass.UInt64Class) { result = NumericConv.StringToNullableUInt64(from); } else if (innerType == TypeClass.FloatClass) { result = NumericConv.StringToNullableFloat(from); } else if (innerType == TypeClass.DoubleClass) { result = NumericConv.StringToNullableDouble(from); } else if (innerType == TypeClass.DecimalClass) { result = NumericConv.StringToNullableDecimal(from); } else { valueUpdated = false; } return(valueUpdated); }