47 references to GetEnumInfo
System.Private.CoreLib (47)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (43)
62if (underlyingType == typeof(sbyte) || underlyingType == typeof(byte)) return GetNameInlined(GetEnumInfo<byte>(rt), *(byte*)&value); 63if (underlyingType == typeof(short) || underlyingType == typeof(ushort)) return GetNameInlined(GetEnumInfo<ushort>(rt), *(ushort*)&value); 64if (underlyingType == typeof(int) || underlyingType == typeof(uint)) return GetNameInlined(GetEnumInfo<uint>(rt), *(uint*)&value); 65if (underlyingType == typeof(long) || underlyingType == typeof(ulong)) return GetNameInlined(GetEnumInfo<ulong>(rt), *(ulong*)&value); 110return GetName(GetEnumInfo<byte>(enumType), (byte)(sbyte)uint64Value); 114return GetName(GetEnumInfo<byte>(enumType), (byte)uint64Value); 118return GetName(GetEnumInfo<ushort>(enumType), (ushort)(short)uint64Value); 122return GetName(GetEnumInfo<ushort>(enumType), (ushort)uint64Value); 126return GetName(GetEnumInfo<uint>(enumType), (uint)(int)uint64Value); 130return GetName(GetEnumInfo<uint>(enumType), (uint)uint64Value); 133return GetName(GetEnumInfo<ulong>(enumType), (ulong)(long)uint64Value); 136return GetName(GetEnumInfo<ulong>(enumType), uint64Value); 227if (underlyingType == typeof(sbyte) || underlyingType == typeof(byte)) names = GetEnumInfo<byte>(rt).Names; 228else if (underlyingType == typeof(short) || underlyingType == typeof(ushort)) names = GetEnumInfo<ushort>(rt).Names; 229else if (underlyingType == typeof(int) || underlyingType == typeof(uint)) names = GetEnumInfo<uint>(rt).Names; 230else if (underlyingType == typeof(long) || underlyingType == typeof(ulong)) names = GetEnumInfo<ulong>(rt).Names; 262CorElementType.ELEMENT_TYPE_I1 or CorElementType.ELEMENT_TYPE_U1 => GetEnumInfo<byte>(enumType).Names, 263CorElementType.ELEMENT_TYPE_I2 or CorElementType.ELEMENT_TYPE_U2 => GetEnumInfo<ushort>(enumType).Names, 264CorElementType.ELEMENT_TYPE_I4 or CorElementType.ELEMENT_TYPE_U4 => GetEnumInfo<uint>(enumType).Names, 265CorElementType.ELEMENT_TYPE_I8 or CorElementType.ELEMENT_TYPE_U8 => GetEnumInfo<ulong>(enumType).Names, 345CorElementType.ELEMENT_TYPE_I1 => GetEnumInfo<byte>(enumType, getNames: false).CloneValues<sbyte>(), 346CorElementType.ELEMENT_TYPE_U1 => GetEnumInfo<byte>(enumType, getNames: false).CloneValues<byte>(), 347CorElementType.ELEMENT_TYPE_I2 => GetEnumInfo<ushort>(enumType, getNames: false).CloneValues<short>(), 348CorElementType.ELEMENT_TYPE_U2 => GetEnumInfo<ushort>(enumType, getNames: false).CloneValues<ushort>(), 349CorElementType.ELEMENT_TYPE_I4 => GetEnumInfo<uint>(enumType, getNames: false).CloneValues<int>(), 350CorElementType.ELEMENT_TYPE_U4 => GetEnumInfo<uint>(enumType, getNames: false).CloneValues<uint>(), 351CorElementType.ELEMENT_TYPE_I8 => GetEnumInfo<ulong>(enumType, getNames: false).CloneValues<long>(), 352CorElementType.ELEMENT_TYPE_U8 => GetEnumInfo<ulong>(enumType, getNames: false).CloneValues<ulong>(), 375CorElementType.ELEMENT_TYPE_I1 => GetEnumInfo<byte>(enumType, getNames: false).Values, 376CorElementType.ELEMENT_TYPE_U1 => GetEnumInfo<byte>(enumType, getNames: false).Values, 377CorElementType.ELEMENT_TYPE_I2 => GetEnumInfo<ushort>(enumType, getNames: false).Values, 378CorElementType.ELEMENT_TYPE_U2 => GetEnumInfo<ushort>(enumType, getNames: false).Values, 379CorElementType.ELEMENT_TYPE_I4 => GetEnumInfo<uint>(enumType, getNames: false).Values, 380CorElementType.ELEMENT_TYPE_U4 => GetEnumInfo<uint>(enumType, getNames: false).Values, 381CorElementType.ELEMENT_TYPE_I8 => GetEnumInfo<ulong>(enumType, getNames: false).Values, 382CorElementType.ELEMENT_TYPE_U8 => GetEnumInfo<ulong>(enumType, getNames: false).Values, 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); 1523result = FormatFlagNames(GetEnumInfo<TStorage>(enumType), value); 1863EnumInfo<TStorage> enumInfo = GetEnumInfo<TStorage>(enumType); 1915if (TryFormatFlagNames(GetEnumInfo<TStorage>(enumType), Unsafe.BitCast<TUnderlying, TStorage>(value), destination, out charsWritten, ref destinationIsTooSmall) ||
System\Enum.NativeAot.cs (4)
32EETypeElementType.SByte or EETypeElementType.Byte => GetEnumInfo<byte>(enumType), 33EETypeElementType.Int16 or EETypeElementType.UInt16 => GetEnumInfo<ushort>(enumType), 34EETypeElementType.Int32 or EETypeElementType.UInt32 => GetEnumInfo<uint>(enumType), 35EETypeElementType.Int64 or EETypeElementType.UInt64 => GetEnumInfo<ulong>(enumType),