示例#1
0
文件: abc168_d.cs 项目: ha2ne2/ABC
                                                                                                                                               public int CompareTo(VTuple4 <T1, T2, T3, T4> 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);
                                                                                                                                                   }
                                                                                                                                                   c = Comparer <T3> .Default.Compare(Item3, other.Item3); if (c != 0)
                                                                                                                                                   {
                                                                                                                                                       return(c);
                                                                                                                                                   }
                                                                                                                                                   return(Comparer <T4> .Default.Compare(Item4, other.Item4));
                                                                                                                                               }
示例#2
0
文件: abc168_d.cs 项目: ha2ne2/ABC
 public bool Equals(VTuple4 <T1, T2, T3, T4> other)
 {
     return(EqualityComparer <T1> .Default.Equals(Item1, other.Item1) && EqualityComparer <T2> .Default.Equals(Item2, other.Item2) && EqualityComparer <T3> .Default.Equals(Item3, other.Item3) && EqualityComparer <T4> .Default.Equals(Item4, other.Item4));
 }