ComponentRecordType Class

A record type: named fields.

public sealed class ComponentRecordType : ComponentValueType
Inheritance
ComponentValueType ComponentRecordType

Constructors

NameDescription
ComponentRecordType(IEnumerable<ComponentField>)Initializes a new instance of the ComponentRecordType class.

ComponentRecordType(IEnumerable<ComponentField>)

ComponentTypes.cs

Initializes a new instance of the ComponentRecordType class.

public ComponentRecordType(IEnumerable<ComponentField> fields)

Parameters

fields IEnumerable<ComponentField>
The fields, at least one.

Properties

NameDescription
FieldsGets the fields.

Gets the fields.

public ImmutableArray<ComponentField> Fields { 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.