ComponentListType Class

A list type: a sequence of values of an element type, of a fixed length or not.

public sealed class ComponentListType : ComponentValueType
Inheritance
ComponentValueType ComponentListType

Constructors

NameDescription
ComponentListType(ComponentValueType, int?)Initializes a new instance of the ComponentListType class.

ComponentListType(ComponentValueType, int?)

ComponentTypes.cs

Initializes a new instance of the ComponentListType class.

public ComponentListType(ComponentValueType elementType, int? fixedLength = null)

Parameters

elementType ComponentValueType
The type of the elements.
fixedLength int?
The length of a fixed-length list, or null.

Properties

NameDescription
ElementTypeGets the type of the elements.
FixedLengthGets the length of a fixed-length list, or null.

Gets the type of the elements.

public ComponentValueType ElementType { get; }

Property value

ComponentValueType

Gets the length of a fixed-length list, or null.

public int? FixedLength { get; }

Property value

int?

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.