csharp
public sealed class SourceEnumMemberSymbolA member of an enum: a constant of the enum's own type.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (9)
public int OrdinalDeclaration order. The value continues from the previous member, C-style.
public override string Namepublic override Symbol? ContainingSymbolpublic override SyntaxNode DeclaringSyntaxpublic override TypeSymbol Typepublic override bool IsConstpublic override bool IsReadOnlypublic override bool IsStaticpublic override object? ConstantValueThe member's value: its initializer evaluated as a constant expression, or the previous member's value plus one — A, B = 5, C makes C six. An initializer that is not a compile-time integer is RVN2094; a cycle (A = B, B = A) is a circular-definition error. Both fall back to 0 so downstream phases still see a well-typed constant.
Used by (2)
- SemanticModelVixen.Raven
- SourceNamedTypeSymbolVixen.Raven