Class RefTuple
Provides factory methods to create reference tuples.
public static class RefTuple
- Inheritance
-
RefTuple
- Inherited Members
Methods
Create<TFirst, TSecond>(TFirst, TSecond)
Creates a new pair of reference values.
public static RefPair<TFirst, TSecond> Create<TFirst, TSecond>(TFirst first, TSecond second)
Parameters
first
TFirstThe first element.
second
TSecondThe second element.
Returns
- RefPair<TFirst, TSecond>
A new instance of RefPair<TFirst, TSecond>.
Type Parameters
TFirst
Type of the first element.
TSecond
Type of the second element.
Create<TFirst, TSecond, TThird>(TFirst, TSecond, TThird)
Creates a new triple of reference values.
public static RefTriple<TFirst, TSecond, TThird> Create<TFirst, TSecond, TThird>(TFirst first, TSecond second, TThird third)
Parameters
first
TFirstThe first element.
second
TSecondThe second element.
third
TThirdThe third element.
Returns
- RefTriple<TFirst, TSecond, TThird>
A new instance of RefTriple<TFirst, TSecond, TThird>.
Type Parameters
TFirst
Type of the first element.
TSecond
Type of the second element.
TThird
Type of the third element.
Create<TFirst, TSecond, TThird, TFourth>(TFirst, TSecond, TThird, TFourth)
Creates a new quadruple of reference values.
public static RefQuadruple<TFirst, TSecond, TThird, TFourth> Create<TFirst, TSecond, TThird, TFourth>(TFirst first, TSecond second, TThird third, TFourth fourth)
Parameters
first
TFirstThe first element.
second
TSecondThe second element.
third
TThirdThe third element.
fourth
TFourthThe fourth element.
Returns
- RefQuadruple<TFirst, TSecond, TThird, TFourth>
A new instance of RefQuadruple<TFirst, TSecond, TThird, TFourth>.
Type Parameters
TFirst
Type of the first element.
TSecond
Type of the second element.
TThird
Type of the third element.
TFourth
Type of the fourth element.
Create<TFirst, TSecond, TThird, TFourth, TFifth>(TFirst, TSecond, TThird, TFourth, TFifth)
Creates a new quintuple of reference values.
public static RefFive<TFirst, TSecond, TThird, TFourth, TFifth> Create<TFirst, TSecond, TThird, TFourth, TFifth>(TFirst first, TSecond second, TThird third, TFourth fourth, TFifth fifth)
Parameters
first
TFirstThe first element.
second
TSecondThe second element.
third
TThirdThe third element.
fourth
TFourthThe fourth element.
fifth
TFifthThe fifth element.
Returns
- RefFive<TFirst, TSecond, TThird, TFourth, TFifth>
A new instance of RefFive<TFirst, TSecond, TThird, TFourth, TFifth>.
Type Parameters
TFirst
Type of the first element.
TSecond
Type of the second element.
TThird
Type of the third element.
TFourth
Type of the fourth element.
TFifth
Type of the fifth element.
GetName(int)
Gets the name of the member at the specified index.
public static string GetName(int idx)
Parameters
idx
intThe index of the member.
Returns
- string
The name of the corresponding member.
Exceptions
- ArgumentOutOfRangeException
Thrown when the index is out of range.