/// <summary> /// 排序比较,在类型相同时可以用于大小比较 /// </summary> public int CompareTo(CardSet other) { return(Type == other.Type ? KeyNumber.CompareTo(other.KeyNumber) : Type.CompareTo(other.Type)); }