Table of Contents

Class EnumDataModel

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

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

bool

Kind

Determines the type of TypeDataModel being used.

public override TypeDataKind Kind { get; }

Property Value

TypeDataKind

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

IReadOnlyDictionary<string, object>

UnderlyingType

The underlying numeric type used by the enum.

public required ITypeSymbol UnderlyingType { get; init; }

Property Value

ITypeSymbol