/// <summary> /// Comparation /// </summary> /// <param name="other"></param> /// <returns></returns> public override int CompareTo(AbstractAdapterItem other) { CostReportItem item = other as CostReportItem; if (item == null) { return -1; } return - this._amount.CompareTo(item._amount); }
/// <summary> /// compare /// </summary> /// <param name="other"></param> /// <returns></returns> public override int CompareTo(AbstractAdapterItem other) { CostDocumentAdapterItem item = other as CostDocumentAdapterItem; if (item == null) { return 0; } return _head.PstDate.CompareTo(item._head.PstDate); }
public override int CompareTo(AbstractAdapterItem other) { return 0; }