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