DynamicTuple

Ecng.Collections

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

Inherits: Equatable<DynamicTuple>

Constructors

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

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

Methods

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

Creates a shallow copy of this tuple.

Returns: 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.

Returns: 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.

Returns: 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.

Returns: A string representing the tuple's values.

Fields

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

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