Exemple #1
0
 /// <summary>
 /// Item-wise equality check
 /// </summary>
 public bool Equals(Duo <I1, I2> other)
 {
     return(this.Item1.Equals(other.Item1) && this.Item2.Equals(other.Item2));
 }
Exemple #2
0
 /// <summary>
 /// Reverses the Duo tuple
 /// </summary>
 public static Duo <I2, I1> Reversed <I1, I2>(this Duo <I1, I2> duo)
 {
     return(New(duo.Item2, duo.Item1));
 }