Class Tuple<T1, T2>
A tuple/pair class because the version of C# that Unity uses doesn't have this yet.
Inheritance
Tuple<T1, T2>
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class Tuple<T1, T2>
Type Parameters
Name |
Description |
T1 |
First/left type
|
T2 |
Second/right type
|
Constructors
|
Improve this Doc
View Source
Tuple(T1, T2)
Declaration
Parameters
Type |
Name |
Description |
T1 |
a |
|
T2 |
b |
|
|
Improve this Doc
View Source
Tuple((T1, T2))
Declaration
public Tuple((T1, T2) valueTuple)
Parameters
Type |
Name |
Description |
(T1, T2)<T1, T2> |
valueTuple |
|
Fields
|
Improve this Doc
View Source
First
Declaration
Field Value
|
Improve this Doc
View Source
Second
Declaration
Field Value
Methods
|
Improve this Doc
View Source
Make(T1, T2)
Declaration
public static Tuple<T1, T2> Make(T1 a, T2 b)
Parameters
Type |
Name |
Description |
T1 |
a |
|
T2 |
b |
|
Returns
Type |
Description |
Tuple<T1, T2> |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
ToValueTuple()
Declaration
public (T1, T2) ToValueTuple()
Returns