ComponentMapType Class

A map type: entries of a key and a value.

public sealed class ComponentMapType : ComponentValueType
Inheritance
ComponentValueType ComponentMapType

Constructors

NameDescription
ComponentMapType(ComponentValueType, ComponentValueType)Initializes a new instance of the ComponentMapType class.

ComponentMapType(ComponentValueType, ComponentValueType)

ComponentTypes.cs

Initializes a new instance of the ComponentMapType class.

public ComponentMapType(ComponentValueType keyType, ComponentValueType valueType)

Parameters

keyType ComponentValueType
The type of the keys.
valueType ComponentValueType
The type of the values.

Properties

NameDescription
KeyTypeGets the type of the keys.
ValueTypeGets the type of the values.

Gets the type of the keys.

public ComponentValueType KeyType { get; }

Property value

ComponentValueType

Gets the type of the values.

public ComponentValueType ValueType { get; }

Property value

ComponentValueType

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.