Table of Contents

Class DynamicTuple

Namespace
Ecng.Collections
Assembly
Ecng.Collections.dll

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

public class DynamicTuple : Equatable<DynamicTuple>, ICloneable<DynamicTuple>, ICloneable, IEquatable<DynamicTuple>, IComparable<DynamicTuple>, IComparable
Inheritance
DynamicTuple
Implements
Inherited Members
Extension Methods

Constructors

DynamicTuple(object[])

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

public DynamicTuple(object[] values)

Parameters

values object[]

Fields

Values

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

public readonly IReadOnlyCollection<object> Values

Field Value

IReadOnlyCollection<object>

Methods

Clone()

Creates a shallow copy of this tuple.

public override DynamicTuple Clone()

Returns

DynamicTuple

A new DynamicTuple with the same values.

GetHashCode()

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

public override int GetHashCode()

Returns

int

A hash code for the tuple.

OnEquals(DynamicTuple)

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

protected override bool OnEquals(DynamicTuple other)

Parameters

other DynamicTuple

The other DynamicTuple to compare with.

Returns

bool

True if the values are equal in the same order; otherwise, false.

ToString()

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

public override string ToString()

Returns

string

A string representing the tuple's values.