public SelectiveTuple(T1 item1, T2 item2, T3 item3, TupleTrioSelection selection) { switch (selection) { case TupleTrioSelection.Primary: this.Item1 = item1; break; case TupleTrioSelection.Secondary: this.Item2 = item2; break; case TupleTrioSelection.Tertiary: this.Item3 = item3; break; default: throw new ArgumentOutOfRangeException("selection"); } }
public SelectiveTuple(T2 item2) { this.Item2 = item2; this.Selection = TupleTrioSelection.Secondary; }
public SelectiveTuple(T3 item3) { this.Item3 = item3; this.Selection = TupleTrioSelection.Tertiary; }
public SelectiveTuple(T1 item1) { this.Item1 = item1; this.Selection = TupleTrioSelection.Primary; }