示例#1
0
        public int CompareTo(PaymentReportEntry other)
        {
            var result = string.Compare(Details, other.Details, StringComparison.Ordinal);

            if (result == 0)
            {
                result = TransactionDate.CompareTo(other.TransactionDate);
            }
            return(result);
        }
示例#2
0
 public int CompareTo(object obj)
 {
     return(TransactionDate.CompareTo(((Transaction)obj).TransactionDate));
 }