Skip to content
CShift0.45

Tuple4<T1,

Struct · global namespace · Since 0.42

struct Tuple4<T1, T2, T3, T4> : IEquatable<Tuple4<T1, T2, T3, T4>>, IHashable

A tuple of 4 values: the type (T1, T2, T3, T4), made by (a1, a2, a3, a4).

The values are the fields Item1 to Item4; var (a, b, c, d) = t; takes them apart.

Name Description
Item1 The first value.
Item2 The second value.
Item3 The third value.
Item4 The fourth value.
T1 Item1

The first value.

T2 Item2

The second value.

T3 Item3

The third value.

T4 Item4

The fourth value.

Name Description
Equals Whether every value equals the one at the same position in other.
GetHashCode A hash code made of the hash codes of the values (tuples can be keys of a Dictionary).
ToString The values as text: (1, abc).
bool Equals(Tuple4<T1, T2, T3, T4> other)

Whether every value equals the one at the same position in other.

int GetHashCode()

A hash code made of the hash codes of the values (tuples can be keys of a Dictionary).

string ToString()

The values as text: (1, abc).