src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (42)
59RuntimeType rt = (RuntimeType)typeof(TEnum);
100internal static string? GetName(RuntimeType enumType, ulong uint64Value)
223RuntimeType rt = (RuntimeType)typeof(TEnum);
256internal static string[] GetNamesNoCopy(RuntimeType enumType)
292Array values = GetValuesAsUnderlyingTypeNoCopy((RuntimeType)typeof(TEnum));
339internal static Array GetValuesAsUnderlyingType(RuntimeType enumType)
369internal static Array GetValuesAsUnderlyingTypeNoCopy(RuntimeType enumType)
474RuntimeType rt = (RuntimeType)typeof(TEnum);
492internal static bool IsDefinedPrimitive<TStorage>(RuntimeType enumType, TStorage value)
723RuntimeType rt = ValidateRuntimeType(enumType);
774static bool TryParseRareTypes(RuntimeType rt, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, [NotNullWhen(true)] out long result)
891RuntimeType rt = (RuntimeType)typeof(TEnum);
915RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TUnderlying result)
973RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TUnderlying result)
1043private static bool TryParseByName<TStorage>(RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TStorage result)
1357RuntimeType enumType = (RuntimeType)GetType();
1374static string HandleRareTypes(RuntimeType enumType, ref byte rawData) =>
1405RuntimeType enumType = (RuntimeType)GetType();
1425static string HandleRareTypes(RuntimeType enumType, char formatChar, ref byte rawData) =>
1452private static string ToString<TUnderlying, TStorage>(RuntimeType enumType, ref byte rawData)
1464private static string ToStringInlined<TUnderlying, TStorage>(RuntimeType enumType, ref byte rawData)
1481private static string ToString<TUnderlying, TStorage>(RuntimeType enumType, char format, ref byte rawData)
1494private static string ToStringInlined<TUnderlying, TStorage>(RuntimeType enumType, char format, ref byte rawData)
1630RuntimeType rtType = ValidateRuntimeType(enumType);
1690RuntimeType enumType = (RuntimeType)GetType();
1750RuntimeType rt = (RuntimeType)typeof(TEnum);
1809RuntimeType rt = (RuntimeType)typeof(TEnum);
1857private static bool TryFormatPrimitiveDefault<TUnderlying, TStorage>(RuntimeType enumType, TUnderlying value, Span<char> destination, out int charsWritten)
1892private static bool TryFormatPrimitiveNonDefault<TUnderlying, TStorage>(RuntimeType enumType, TUnderlying value, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format)
2126private static RuntimeType ValidateRuntimeType(Type enumType)
2130RuntimeType? rt = enumType as RuntimeType;
2148throw new ArgumentException(enumType is not RuntimeType ? SR.Arg_MustBeType : SR.Arg_MustBeEnum, nameof(enumType));