Пример #1
0
 public static int Compare(AutoOperators obj1, AutoOperators obj2)
 {
     if (ReferenceEquals(obj1, obj2))
         return 0;
     if ((object) obj1 == null)
         return -1;
     if ((object) obj2 == null)
         return 1;
     return obj1.CompareTo(obj2);
 }
Пример #2
0
 public static int Compare(AutoOperators obj1, AutoOperators obj2)
 {
     if (ReferenceEquals(obj1, obj2))
     {
         return(0);
     }
     if (obj1 is null)
     {
         return(-1);
     }
     if (obj2 is null)
     {
         return(1);
     }
     return(obj1.CompareTo(obj2));
 }