Enhanced C#
Language of your choice: library documentation
Public fields | Public static fields | Properties | Public Member Functions | Static Public Member Functions | List of all members
Loyc.Triplet< T1, T2, T3 > Struct Template Reference

A tuple of three values (A, B and C) in a struct. More...


Source file:

Remarks

A tuple of three values (A, B and C) in a struct.

For compatibility with Tuple<A,B,C>, it has Item1, Item2 and Item3 properties, which refer to the A, B and C fields, respectively.

Public fields

T1 A
 
T2 B
 
T3 C
 

Public static fields

static readonly EqualityComparer< T1 > T1Comp = EqualityComparer<T1>.Default
 
static readonly EqualityComparer< T2 > T2Comp = EqualityComparer<T2>.Default
 
static readonly EqualityComparer< T3 > T3Comp = EqualityComparer<T3>.Default
 

Properties

T1 Item1 [get, set]
 
T2 Item2 [get, set]
 
T3 Item3 [get, set]
 

Public Member Functions

 Triplet (T1 a, T2 b, T3 c)
 
bool Equals (Triplet< T1, T2, T3 > rhs)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 
int CompareTo (Triplet< T1, T2, T3 > other)
 
int CompareTo (object obj)
 

Static Public Member Functions

static bool operator== (Triplet< T1, T2, T3 > a, Triplet< T1, T2, T3 > b)
 
static bool operator!= (Triplet< T1, T2, T3 > a, Triplet< T1, T2, T3 > b)