Class EnumDataModel
Represents an Enum type data model.
public sealed class EnumDataModel : TypeDataModel
- Inheritance
-
EnumDataModel
- Inherited Members
Properties
IsFlags
Gets a value indicating whether the enum is annotated with the FlagsAttribute.
public required bool IsFlags { get; init; }
Property Value
Kind
Determines the type of TypeDataModel being used.
public override TypeDataKind Kind { get; }
Property Value
Members
The members of the enum, represented as a dictionary of member names to their underlying values.
public required IReadOnlyDictionary<string, object> Members { get; init; }
Property Value
UnderlyingType
The underlying numeric type used by the enum.
public required ITypeSymbol UnderlyingType { get; init; }