Exemple #1
0
 // Token: 0x06000E6B RID: 3691 RVA: 0x000375C8 File Offset: 0x000357C8
 private int CompareForward(KeyTypeInfo <Key> x, KeyTypeInfo <Key> y)
 {
     if (x.Root != y.Root)
     {
         return(KeyTypeInfo.ForcedDifCompareValue(x.Root.Type, y.Root.Type));
     }
     if (x.TraitDepth == y.TraitDepth)
     {
         return(KeyTypeInfo <Key> .Comparison.HierarchyComparer.BaseCompare(x, y));
     }
     return(x.TraitDepth.CompareTo(y.TraitDepth));
 }
Exemple #2
0
                // Token: 0x06000E6A RID: 3690 RVA: 0x0003757C File Offset: 0x0003577C
                private static int BaseCompare(KeyTypeInfo <Key> x, KeyTypeInfo <Key> y)
                {
                    if (x.TraitDepth == 0 || x == y)
                    {
                        return(0);
                    }
                    int num = KeyTypeInfo <Key> .Comparison.HierarchyComparer.BaseCompare(x.Base, y.Base);

                    if (num == 0)
                    {
                        num = KeyTypeInfo.ForcedDifCompareValue(x.Type, y.Type);
                    }
                    return(num);
                }