Пример #1
0
        public int CompareTo(Card other)
        {
            int currentCompare = Color.CompareTo(other.Color);

            if (currentCompare != 0)
            {
                return(currentCompare);
            }

            return(Value.CompareTo(other.Value));
        }