TowerVR  1.0
Tuple< T1, T2 > Class Template Reference

Represents a functional tuple that can be used to store two values of different types inside one object. More...

Public Member Functions

 Tuple (T1 item1, T2 item2)
 Create a new tuple value More...
 
override string ToString ()
 
override int GetHashCode ()
 
override bool Equals (object o)
 
bool Equals (Tuple< T1, T2 > other)
 
void Unpack (Action< T1, T2 > unpackerDelegate)
 

Static Public Member Functions

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

Properties

T1 Item1 [get]
 Retyurns the first element of the tuple More...
 
T2 Item2 [get]
 Returns the second element of the tuple More...
 

Detailed Description

Represents a functional tuple that can be used to store two values of different types inside one object.

Template Parameters
T1The type of the first element
T2The type of the second element

Constructor & Destructor Documentation

Tuple< T1, T2 >.Tuple ( T1  item1,
T2  item2 
)

Create a new tuple value

Parameters
item1First element of the tuple
secondSecond element of the tuple

Member Function Documentation

override bool Tuple< T1, T2 >.Equals ( object  o)
bool Tuple< T1, T2 >.Equals ( Tuple< T1, T2 >  other)
override int Tuple< T1, T2 >.GetHashCode ( )
static bool Tuple< T1, T2 >.operator!= ( Tuple< T1, T2 >  a,
Tuple< T1, T2 >  b 
)
static
static bool Tuple< T1, T2 >.operator== ( Tuple< T1, T2 >  a,
Tuple< T1, T2 >  b 
)
static
override string Tuple< T1, T2 >.ToString ( )
void Tuple< T1, T2 >.Unpack ( Action< T1, T2 >  unpackerDelegate)

Property Documentation

T1 Tuple< T1, T2 >.Item1
get

Retyurns the first element of the tuple

T2 Tuple< T1, T2 >.Item2
get

Returns the second element of the tuple


The documentation for this class was generated from the following file: