1 instantiation of EnumInfo
System.Private.CoreLib (1)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
483
return new
EnumInfo
<TStorage>(underlyingType, values, names, isFlags);
15 references to EnumInfo
System.Private.CoreLib (15)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
477
private static
EnumInfo
<TStorage> CreateEnumInfoTyped<TStorage>(Type underlyingType, string[] names, object[] valuesAsObject, bool isFlags)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (11)
163
private static string? GetName<TStorage>(
EnumInfo
<TStorage> enumInfo, TStorage value)
167
/// <summary>Look up the name for the specified underlying value using the cached <see cref="
EnumInfo
{TStorage}"/> for the associated enum.</summary>
169
/// <param name="enumInfo">The cached <see cref="
EnumInfo
{TStorage}"/> for the enum type.</param>
173
private static unsafe string? GetNameInlined<TStorage>(
EnumInfo
<TStorage> enumInfo, TStorage value)
495
EnumInfo
<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType, getNames: false);
1049
EnumInfo
<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType);
1472
EnumInfo
<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType);
1506
EnumInfo
<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType);
1863
EnumInfo
<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType);
1929
private static unsafe string? FormatFlagNames<TStorage>(
EnumInfo
<TStorage> enumInfo, TStorage resultValue)
1962
private static unsafe bool TryFormatFlagNames<TStorage>(
EnumInfo
<TStorage> enumInfo, TStorage resultValue, Span<char> destination, out int charsWritten, ref bool isDestinationTooSmall)
System\Enum.NativeAot.cs (3)
34
internal static
EnumInfo
<TStorage> GetEnumInfo<TStorage>(RuntimeType enumType, bool getNames = true)
46
if (runtimeTypeInfo.GenericCache is
EnumInfo
<TStorage> info)
48
return (
EnumInfo
<TStorage>)Internal.Reflection.Augments.ReflectionAugments.CreateAndCacheEnumInfo(runtimeTypeInfo);