using System; namespace XMainClient { internal class XLFUItem : IComparable> { public bool bCanPop { get { return this.canPop < 0; } set { this.canPop = (value ? -1 : 1); } } public T data; public uint frequent = 0u; public int index; private int canPop; public int CompareTo(XLFUItem other) { bool flag = this.canPop == other.canPop; int result; if (flag) { result = this.frequent.CompareTo(other.frequent); } else { result = this.canPop.CompareTo(other.canPop); } return result; } } }