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); }
public bool Equals(DataTypePair <TDataTypeEnum> other) => this == other;