Пример #1
0
        public int CompareTo(DataTypePair <TDataTypeEnum> other)
        {
            if (other == null)
            {
                return(1);
            }
            var leftCmp = Left.CompareTo(other.Left);

            return(leftCmp == 0
                ? Right.CompareTo(other.Right)
                : leftCmp);
        }
Пример #2
0
 public bool Equals(DataTypePair <TDataTypeEnum> other) => this == other;