1 instantiation of EnumInfo
System.Private.CoreLib (1)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
483return new EnumInfo<TStorage>(underlyingType, values, names, isFlags);
15 references to EnumInfo
System.Private.CoreLib (15)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
477private 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)
163private 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> 173private static unsafe string? GetNameInlined<TStorage>(EnumInfo<TStorage> enumInfo, TStorage value) 495EnumInfo<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType, getNames: false); 1049EnumInfo<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType); 1472EnumInfo<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType); 1506EnumInfo<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType); 1863EnumInfo<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType); 1929private static unsafe string? FormatFlagNames<TStorage>(EnumInfo<TStorage> enumInfo, TStorage resultValue) 1962private static unsafe bool TryFormatFlagNames<TStorage>(EnumInfo<TStorage> enumInfo, TStorage resultValue, Span<char> destination, out int charsWritten, ref bool isDestinationTooSmall)
System\Enum.NativeAot.cs (3)
34internal static EnumInfo<TStorage> GetEnumInfo<TStorage>(RuntimeType enumType, bool getNames = true) 46if (runtimeTypeInfo.GenericCache is EnumInfo<TStorage> info) 48return (EnumInfo<TStorage>)Internal.Reflection.Augments.ReflectionAugments.CreateAndCacheEnumInfo(runtimeTypeInfo);