Exemple #1
0
                                                                                                                                   public int CompareTo(VTuple3 <T1, T2, T3> other)
                                                                                                                                   {
                                                                                                                                       int c = Comparer <T1> .Default.Compare(Item1, other.Item1); if (c != 0)

                                                                                                                                       {
                                                                                                                                           return(c);
                                                                                                                                       }
                                                                                                                                       c = Comparer <T2> .Default.Compare(Item2, other.Item2); if (c != 0)
                                                                                                                                       {
                                                                                                                                           return(c);
                                                                                                                                       }
                                                                                                                                       return(Comparer <T3> .Default.Compare(Item3, other.Item3));
                                                                                                                                   }
Exemple #2
0
 public bool Equals(VTuple3 <T1, T2, T3> other)
 {
     return(EqualityComparer <T1> .Default.Equals(Item1, other.Item1) && EqualityComparer <T2> .Default.Equals(Item2, other.Item2) && EqualityComparer <T3> .Default.Equals(Item3, other.Item3));
 }