DynamicTuple
Represents a dynamic tuple that holds a collection of objects and provides equality comparison.
Наследует: Equatable<DynamicTuple>
Конструкторы
public DynamicTuple(object[] values)
dynamicTuple = DynamicTuple(values)
Represents a dynamic tuple that holds a collection of objects and provides equality comparison.
Методы
public override DynamicTuple Clone()
result = dynamicTuple.Clone()
Creates a shallow copy of this tuple.
Возвращает: A new DynamicTuple with the same values.
public override int GetHashCode()
result = dynamicTuple.GetHashCode()
Computes a hash code for this tuple based on its values.
Возвращает: A hash code for the tuple.
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.
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.
Поля
public readonly IReadOnlyCollection<object> Values
value = dynamicTuple.Values
Gets the read-only collection of values stored in the tuple.