예제 #1
0
파일: abc101_b.cs 프로젝트: ha2ne2/ABC
                                                                                                                                                                                                     public int CompareTo(VTuple <T1, T2> other)
                                                                                                                                                                                                     {
                                                                                                                                                                                                         int c = Comparer <T1> .Default.Compare(Item1, other.Item1); if (c != 0)

                                                                                                                                                                                                         {
                                                                                                                                                                                                             return(c);
                                                                                                                                                                                                         }
                                                                                                                                                                                                         return(Comparer <T2> .Default.Compare(Item2, other.Item2));
                                                                                                                                                                                                     }
예제 #2
0
파일: abc101_b.cs 프로젝트: ha2ne2/ABC
 public bool Equals(VTuple <T1, T2> other)
 {
     return(EqualityComparer <T1> .Default.Equals(Item1, other.Item1) && EqualityComparer <T2> .Default.Equals(Item2, other.Item2));
 }