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
firstTFirstThe first element.
secondTSecondThe second element.
Returns
- RefPair<TFirst, TSecond>
A new instance of RefPair<TFirst, TSecond>.
Type Parameters
TFirstType of the first element.
TSecondType 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
firstTFirstThe first element.
secondTSecondThe second element.
thirdTThirdThe third element.
Returns
- RefTriple<TFirst, TSecond, TThird>
A new instance of RefTriple<TFirst, TSecond, TThird>.
Type Parameters
TFirstType of the first element.
TSecondType of the second element.
TThirdType 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
firstTFirstThe first element.
secondTSecondThe second element.
thirdTThirdThe third element.
fourthTFourthThe fourth element.
Returns
- RefQuadruple<TFirst, TSecond, TThird, TFourth>
A new instance of RefQuadruple<TFirst, TSecond, TThird, TFourth>.
Type Parameters
TFirstType of the first element.
TSecondType of the second element.
TThirdType of the third element.
TFourthType 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
firstTFirstThe first element.
secondTSecondThe second element.
thirdTThirdThe third element.
fourthTFourthThe fourth element.
fifthTFifthThe fifth element.
Returns
- RefFive<TFirst, TSecond, TThird, TFourth, TFifth>
A new instance of RefFive<TFirst, TSecond, TThird, TFourth, TFifth>.
Type Parameters
TFirstType of the first element.
TSecondType of the second element.
TThirdType of the third element.
TFourthType of the fourth element.
TFifthType of the fifth element.
GetName(int)
Gets the name of the member at the specified index.
public static string GetName(int idx)
Parameters
idxintThe index of the member.
Returns
- string
The name of the corresponding member.
Exceptions
- ArgumentOutOfRangeException
Thrown when the index is out of range.