static private ToTypeCode ( InternalPrimitiveTypeE code ) : TypeCode | ||
code | InternalPrimitiveTypeE | |
리턴 | TypeCode |
// Token: 0x0600539E RID: 21406 RVA: 0x00128254 File Offset: 0x00126454 internal static object FromString(string value, InternalPrimitiveTypeE code) { object result; if (code != InternalPrimitiveTypeE.Invalid) { result = Convert.ChangeType(value, Converter.ToTypeCode(code), CultureInfo.InvariantCulture); } else { result = value; } return(result); }
internal static object FromString(string value, InternalPrimitiveTypeE code) { return(code == InternalPrimitiveTypeE.Invalid ? (object)value : Convert.ChangeType((object)value, Converter.ToTypeCode(code), (IFormatProvider)CultureInfo.InvariantCulture)); }