Пример #1
0
 public static int CompareImminentReminders(ImminentReminderModel x, ImminentReminderModel y)
 {
     if (x == null && y == null)
     {
         return(0);
     }
     else if (x != null && y == null)
     {
         return(-1); // I want non-null values first
     }
     else if (x == null && y != null)
     {
         return(1); // I want non-null values first
     }
     else
     {
         return(CompareReminders(x.Inner, y.Inner));
     }
 }
 public static int CompareImminentReminders(ImminentReminderModel x, ImminentReminderModel y)
 {
     if (x == null && y == null)
     {
         return 0;
     }
     else if (x != null && y == null)
     {
         return -1; // I want non-null values first
     }
     else if (x == null && y != null)
     {
         return 1; // I want non-null values first
     }
     else
     {
         return CompareReminders(x.Inner, y.Inner);
     }
 }