6 overrides of GetEnumUnderlyingType
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
101public sealed override Type GetEnumUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
160public override Type GetEnumUnderlyingType()
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
257public override Type GetEnumUnderlyingType()
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
195public override Type GetEnumUnderlyingType()
System.Reflection.Emit (1)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
620public override Type GetEnumUnderlyingType()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
329public sealed override Type GetEnumUnderlyingType() => _lazyUnderlyingEnumType ??= ComputeEnumUnderlyingType();
31 references to GetEnumUnderlyingType
System.Collections.Immutable (5)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (5)
42if (typeof(TKey) == typeof(byte) || (typeof(TKey).IsEnum && typeof(TKey).GetEnumUnderlyingType() == typeof(byte))) 45if (typeof(TKey) == typeof(sbyte) || (typeof(TKey).IsEnum && typeof(TKey).GetEnumUnderlyingType() == typeof(sbyte))) 48if (typeof(TKey) == typeof(ushort) || (typeof(TKey).IsEnum && typeof(TKey).GetEnumUnderlyingType() == typeof(ushort))) 51if (typeof(TKey) == typeof(short) || (typeof(TKey).IsEnum && typeof(TKey).GetEnumUnderlyingType() == typeof(short))) 54if (typeof(TKey) == typeof(int) || (typeof(TKey).IsEnum && typeof(TKey).GetEnumUnderlyingType() == typeof(int)))
System.ComponentModel.TypeConverter (2)
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
202if (_defaultValue != null && PropertyType.IsEnum && PropertyType.GetEnumUnderlyingType() == _defaultValue.GetType()) 302bool storedAsUnderlyingType = defaultValue != null && PropertyType.IsEnum && PropertyType.GetEnumUnderlyingType() == defaultValue.GetType();
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnDecoder.Enumerated.cs (1)
204Type backingType = enumType.GetEnumUnderlyingType();
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
189Type backingType = flagsEnumType.GetEnumUnderlyingType();
System\Formats\Asn1\AsnWriter.Enumerated.cs (1)
77Type backingType = tEnum.GetEnumUnderlyingType();
System\Formats\Asn1\AsnWriter.NamedBitList.cs (1)
111Type backingType = tEnum.GetEnumUnderlyingType();
System.Linq (1)
System\Linq\OrderBy.cs (1)
148t = typeof(T).GetEnumUnderlyingType();
System.Linq.Expressions (1)
System\Dynamic\Utils\TypeUtils.cs (1)
316|| source.IsEnum && source.GetEnumUnderlyingType() == typeof(bool));
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3544(dataType.IsEnum && Type.GetTypeCode(dataType.GetEnumUnderlyingType()) <= TypeCode.UInt32)) 6037string typeName = GetTypeName(type.GetEnumUnderlyingType());
src\libraries\System.Private.CoreLib\src\System\Enum.cs (9)
60Type underlyingType = typeof(TEnum).GetEnumUnderlyingType(); 224Type underlyingType = typeof(TEnum).GetEnumUnderlyingType(); 284return enumType.GetEnumUnderlyingType(); 475Type underlyingType = typeof(TEnum).GetEnumUnderlyingType(); 892Type underlyingType = typeof(TEnum).GetEnumUnderlyingType(); 1153valueType = valueType.GetEnumUnderlyingType(); 1750Type underlyingType = typeof(TEnum).GetEnumUnderlyingType(); 1809Type underlyingType = typeof(TEnum).GetEnumUnderlyingType(); 2214valueType = valueType.GetEnumUnderlyingType();
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (2)
36valueType = valueType.GetEnumUnderlyingType(); 52Type underlyingType = GetEnumUnderlyingType();
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
902enumTag = RuntimeCustomAttributeData.TypeToCustomAttributeEncoding((RuntimeType)enumType.GetEnumUnderlyingType());
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
197return _typeInfo.GetEnumUnderlyingType();
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
892defaultValue = Convert.ChangeType(defaultValue, type.GetEnumUnderlyingType());
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Assignability.cs (1)
256t = t.GetEnumUnderlyingType();
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
61Type type = enumType.GetEnumUnderlyingType();