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.