Class EnumSchema
An enum schema: a named set of symbols.
public sealed class EnumSchema : NamedSchema
- Inheritance
-
EnumSchema
- Inherited Members
Constructors
- EnumSchema(SchemaName, IEnumerable<string>, string?, string?, IEnumerable<SchemaName>?, IReadOnlyDictionary<string, JsonElement>?)
Initializes an enum schema.
Properties
- DefaultSymbol
Gets the default symbol used during schema resolution, or null.
- Symbols
Gets the symbols, in declaration order (the order defines each symbol's ordinal).
Methods
- TryGetOrdinal(string, out int)
Gets the ordinal of a symbol.