コード例 #1
0
        public int CompareTo(TransactionalResourceVersion other)
        {
            var result = TransactionId.CompareTo(other.TransactionId);

            if (result == 0)
            {
                result = WriteNumber.CompareTo(other.WriteNumber);
            }
            return(result);
        }
コード例 #2
0
        public int CompareTo(TransactionOutput other)
        {
            if (other == null)
            {
                return(1);
            }

            var comp = TransactionId.CompareTo(other.TransactionId);

            return(comp != 0 ? comp : OutIndex - other.OutIndex);
        }
コード例 #3
0
        public int CompareTo(CachedTransaction other)
        {
            if (other == null)
            {
                return(-1);
            }

            // IMPORTANT: The key fields here must for a unique sortable key for the entity.
            //            Therefore if the transaction dates are equal we use the TransactionCode to break the tie.
            var result = DateTime.Compare(TransactionDate, other.TransactionDate);

            return(result != 0
                ? result
                : TransactionId.CompareTo(other.TransactionId));
        }
コード例 #4
0
 public int CompareTo(ITransaction other)
 {
     return(TransactionId.CompareTo(other.TransactionId));
 }