示例#1
0
 public static bool TryParse(Type enumType, string?value, bool ignoreCase, out object?result, EnumFormat format0, EnumFormat format1) => TryParse(enumType, value, ignoreCase, out result, ValueCollection.Create(format0, format1));
示例#2
0
 public static bool TryParse(Type enumType, string?value, out object?result, EnumFormat format0, EnumFormat format1, EnumFormat format2) => TryParse(enumType, value, false, out result, ValueCollection.Create(format0, format1, format2));
示例#3
0
 public static bool TryParse(Type enumType, string?value, out object?result, params EnumFormat[]?formats) => TryParse(enumType, value, false, out result, formats?.Length > 0 ? ValueCollection.Create(formats) : Enums.DefaultFormats);
示例#4
0
 public static object?Parse(Type enumType, string?value, bool ignoreCase, EnumFormat format0, EnumFormat format1, EnumFormat format2) => Parse(enumType, value, ignoreCase, ValueCollection.Create(format0, format1, format2));
示例#5
0
 public static object?Parse(Type enumType, string?value, bool ignoreCase, params EnumFormat[]?formats) => Parse(enumType, value, ignoreCase, formats?.Length > 0 ? ValueCollection.Create(formats) : Enums.DefaultFormats);
示例#6
0
 public static object?Parse(Type enumType, string?value, EnumFormat format0, EnumFormat format1) => Parse(enumType, value, false, ValueCollection.Create(format0, format1));
示例#7
0
 public static EnumMember?GetMember(Type enumType, string value, bool ignoreCase, params EnumFormat[]?formats) => GetCache(enumType).GetMember(value, ignoreCase, formats?.Length > 0 ? ValueCollection.Create(formats) : Enums.NameFormat);
示例#8
0
 public static EnumMember?GetMember(Type enumType, string value, bool ignoreCase, EnumFormat format0, EnumFormat format1, EnumFormat format2) => GetCache(enumType).GetMember(value, ignoreCase, ValueCollection.Create(format0, format1, format2));
示例#9
0
 public static string?AsString(Type enumType, object?value, params EnumFormat[]?formats) => AsString(enumType, value, formats?.Length > 0 ? ValueCollection.Create(formats) : Enums.DefaultFormats);
示例#10
0
 public static string?AsString(Type enumType, object?value, EnumFormat format0, EnumFormat format1, EnumFormat format2) => AsString(enumType, value, ValueCollection.Create(format0, format1, format2));