Пример #1
0
 public static void That(bool condition, Sorry error)
 {
     if (!condition)
     {
         throw new InvalidOperationException(error.ToString());
     }
 }
 int IComparable <SorryCardGameCardInformation> .CompareTo(SorryCardGameCardInformation other)
 {
     if (Category != other.Category)
     {
         return(Category.CompareTo(other.Category));
     }
     if (Sorry != other.Sorry)
     {
         return(Sorry.CompareTo(other.Sorry));
     }
     return(Value.CompareTo(other.Value));
 }
Пример #3
0
 public static void That(bool condition, Sorry error)
 {
     if (!condition)
     throw new InvalidOperationException(error.ToString());
 }