4 overrides of EnumUnderlyingType
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
679public override NamedTypeSymbol EnumUnderlyingType
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
101public override NamedTypeSymbol EnumUnderlyingType
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (1)
24public override NamedTypeSymbol EnumUnderlyingType
Symbols\SubstitutedNamedTypeSymbol.cs (1)
407public sealed override NamedTypeSymbol EnumUnderlyingType
20 references to EnumUnderlyingType
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Conversions.cs (1)
3198var underlyingType = ((NamedTypeSymbol)destination).EnumUnderlyingType;
Binder\Binder_Expressions.cs (3)
525initializer = initializerBinder.GenerateConversionForAssignment(symbol.ContainingType.EnumUnderlyingType, initializer, diagnostics); 7260specialType = type.EnumUnderlyingType.SpecialType; 8649NamedTypeSymbol underlyingType = enumType.EnumUnderlyingType;
CodeGen\EmitConversion.cs (2)
293fromType = ((NamedTypeSymbol)fromType).EnumUnderlyingType; 302toType = ((NamedTypeSymbol)toType).EnumUnderlyingType;
CodeGen\EmitExpression.cs (4)
1020elementType = ((NamedTypeSymbol)elementType).EnumUnderlyingType; 1436type = ((NamedTypeSymbol)type).EnumUnderlyingType; 3217elementType = ((NamedTypeSymbol)elementType).EnumUnderlyingType; 3315type = ((NamedTypeSymbol)type).EnumUnderlyingType;
Compiler\ClsComplianceChecker.cs (1)
531NamedTypeSymbol baseType = symbol.EnumUnderlyingType ?? symbol.BaseTypeNoUseSiteDiagnostics; // null for interfaces
Symbols\NamedTypeSymbol.cs (1)
1706=> EnumUnderlyingType;
Symbols\PublicModel\NamedTypeSymbol.cs (1)
119return UnderlyingNamedTypeSymbol.EnumUnderlyingType.GetPublicSymbol();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
105var underlying = _underlyingType.EnumUnderlyingType;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
981((NamedTypeSymbol)arg.TypeInternal).EnumUnderlyingType.SpecialType :
Symbols\Source\SourceEnumConstantSymbol.cs (1)
156var constantType = this.ContainingType.EnumUnderlyingType.SpecialType;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
581var discarded = this.EnumUnderlyingType;
Symbols\SubstitutedNamedTypeSymbol.cs (1)
411return OriginalDefinition.EnumUnderlyingType;
Symbols\TypeSymbolExtensions.cs (2)
216return (type is NamedTypeSymbol namedType) ? namedType.EnumUnderlyingType : null; 1523return ((NamedTypeSymbol)type).EnumUnderlyingType.SpecialType.IsValidVolatileFieldType();