RefTuple
Ecng.Common
Provides factory methods to create reference tuples.
Methods
Create``2
public static RefPair<TFirst, TSecond> Create<TFirst, TSecond>(TFirst first, TSecond second)
result = RefTuple.Create(first, second)
Creates a new pair of reference values.
- first
- The first element.
- second
- The second element.
Returns: A new instance of RefPair.
Create``3
public static RefTriple<TFirst, TSecond, TThird> Create<TFirst, TSecond, TThird>(TFirst first, TSecond second, TThird third)
result = RefTuple.Create(first, second, third)
Creates a new triple of reference values.
- first
- The first element.
- second
- The second element.
- third
- The third element.
Returns: A new instance of RefTriple.
Create``4
public static RefQuadruple<TFirst, TSecond, TThird, TFourth> Create<TFirst, TSecond, TThird, TFourth>(TFirst first, TSecond second, TThird third, TFourth fourth)
result = RefTuple.Create(first, second, third, fourth)
Creates a new quadruple of reference values.
- first
- The first element.
- second
- The second element.
- third
- The third element.
- fourth
- The fourth element.
Returns: A new instance of RefQuadruple.
Create``5
public static RefFive<TFirst, TSecond, TThird, TFourth, TFifth> Create<TFirst, TSecond, TThird, TFourth, TFifth>(TFirst first, TSecond second, TThird third, TFourth fourth, TFifth fifth)
result = RefTuple.Create(first, second, third, fourth, fifth)
Creates a new quintuple of reference values.
- first
- The first element.
- second
- The second element.
- third
- The third element.
- fourth
- The fourth element.
- fifth
- The fifth element.
Returns: A new instance of RefFive.
GetName
public static string GetName(int idx)
result = RefTuple.GetName(idx)
Gets the name of the member at the specified index.
- idx
- The index of the member.
Returns: The name of the corresponding member.