Dungeon Architect  17.0.0
SharpNav.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

Definition at line 19 of file Tuple.cs.

Constructor & Destructor Documentation

◆ Tuple()

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

Create a new tuple value

Parameters
item1First element of the tuple
secondSecond element of the tuple

Definition at line 45 of file Tuple.cs.

Property Documentation

◆ Item1

T1 SharpNav.Tuple< T1, T2 >.Item1
get

Retyurns the first element of the tuple

Definition at line 27 of file Tuple.cs.

◆ Item2

T2 SharpNav.Tuple< T1, T2 >.Item2
get

Returns the second element of the tuple

Definition at line 35 of file Tuple.cs.


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