示例#1
0
        public override bool CanMergeWith(Transaction transaction)
        {
            if (!(transaction is IndexedFixTransaction))
            {
                return(false);
            }

            IndexedFixTransaction other = (IndexedFixTransaction)transaction;

            //In order to merge two transactions, the transactions must be operating on the same exact object and field.
            //Indexed transactions need to share indices too
            if (other.target == target &&
                other.property == property &&
                other.index == index)
            {
                return(true);
            }
            return(false);
        }
示例#2
0
        public override void MergeIn(Transaction transaction)
        {
            IndexedFixTransaction other = (IndexedFixTransaction)transaction;

            newValue = other.newValue;
        }