using System; namespace XMainClient { internal struct XOrderData : IComparable> where T1 : IComparable { public T1 x; public T2 y; public int CompareTo(XOrderData other) { return this.x.CompareTo(other.x); } } }