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)); }
public static void That(bool condition, Sorry error) { if (!condition) throw new InvalidOperationException(error.ToString()); }