ComponentTupleType Class

A tuple type: unnamed fields.

public sealed class ComponentTupleType : ComponentValueType
Inheritance
ComponentValueType ComponentTupleType

Constructors

NameDescription
ComponentTupleType(IEnumerable<ComponentValueType>)Initializes a new instance of the ComponentTupleType class.

ComponentTupleType(IEnumerable<ComponentValueType>)

ComponentTypes.cs

Initializes a new instance of the ComponentTupleType class.

public ComponentTupleType(IEnumerable<ComponentValueType> types)

Parameters

types IEnumerable<ComponentValueType>
The types of the fields, at least one.

Properties

NameDescription
TypesGets the types of the fields.

Gets the types of the fields.

public ImmutableArray<ComponentValueType> Types { get; }

Methods

NameDescription
Equals(ComponentValueType?)Indicates whether the current object is equal to another object of the same type.
GetHashCode()Serves as the default hash function.

Equals(ComponentValueType?)

ComponentTypes.cs

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(ComponentValueType? other)

Parameters

other ComponentValueType?
An object to compare with this object.

Returns

bool true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

ComponentTypes.cs

Serves as the default hash function.

public override int GetHashCode()

Returns

int A hash code for the current object.