DynamicTuple

Ecng.Collections

Represents a dynamic tuple that holds a collection of objects and provides equality comparison.

継承元: Equatable<DynamicTuple>

コンストラクター

DynamicTuple
public DynamicTuple(object[] values)
dynamicTuple = DynamicTuple(values)

Represents a dynamic tuple that holds a collection of objects and provides equality comparison.

メソッド

Clone
public override DynamicTuple Clone()
result = dynamicTuple.Clone()

Creates a shallow copy of this tuple.

戻り値: A new DynamicTuple with the same values.

GetHashCode
public override int GetHashCode()
result = dynamicTuple.GetHashCode()

Computes a hash code for this tuple based on its values.

戻り値: A hash code for the tuple.

OnEquals
protected override bool OnEquals(DynamicTuple other)
result = dynamicTuple.OnEquals(other)

Determines whether this instance is equal to another DynamicTuple by comparing their values.

other
The other DynamicTuple to compare with.

戻り値: True if the values are equal in the same order; otherwise, false.

ToString
public override string ToString()
result = dynamicTuple.ToString()

Returns a string representation of the tuple, with values separated by commas.

戻り値: A string representing the tuple's values.

フィールド

Values
public readonly IReadOnlyCollection<object> Values
value = dynamicTuple.Values

Gets the read-only collection of values stored in the tuple.