Table of Contents

Class TupleDataModel

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

Represents the data model for a tuple type.

public sealed class TupleDataModel : TypeDataModel
Inheritance
TupleDataModel
Inherited Members

Properties

Elements

The list of elements in the tuple. Tuples with more than 8 elements are flattened to a single list.

public required ImmutableArray<PropertyDataModel> Elements { get; init; }

Property Value

ImmutableArray<PropertyDataModel>

IsValueTuple

Specifies whether the type is a ValueTuple or a Tuple.

public required bool IsValueTuple { get; init; }

Property Value

bool

Kind

Determines the type of TypeDataModel being used.

public override TypeDataKind Kind { get; }

Property Value

TypeDataKind