GetForwardChanges() приватный Метод

private GetForwardChanges ( ChangeTrackingCheckpoint other ) : IEnumerable
other ChangeTrackingCheckpoint
Результат IEnumerable
Пример #1
0
        /// <summary>
        /// Gets the changes from this checkpoint to the other checkpoint.
        /// If 'other' is older than this checkpoint, reverse changes are calculated.
        /// </summary>
        /// <remarks>This method is thread-safe.</remarks>
        /// <exception cref="ArgumentException">Raised if 'other' belongs to a different document than this checkpoint.</exception>
        public IEnumerable <DocumentChangeEventArgs> GetChangesTo(ChangeTrackingCheckpoint other)
        {
            int result = CompareAge(other);

            if (result < 0)
            {
                return(GetForwardChanges(other));
            }
            else if (result > 0)
            {
                return(other.GetForwardChanges(this).Reverse().Select(change => change.Invert()));
            }
            else
            {
                return(Empty <DocumentChangeEventArgs> .Array);
            }
        }
Пример #2
0
 /// <summary>
 /// Gets the changes from this checkpoint to the other checkpoint.
 /// If 'other' is older than this checkpoint, reverse changes are calculated.
 /// </summary>
 /// <remarks>This method is thread-safe.</remarks>
 /// <exception cref="ArgumentException">Raised if 'other' belongs to a different document than this checkpoint.</exception>
 public IEnumerable<DocumentChangeEventArgs> GetChangesTo(ChangeTrackingCheckpoint other)
 {
     int result = CompareAge(other);
     if (result < 0)
         return GetForwardChanges(other);
     else if (result > 0)
         return other.GetForwardChanges(this).Reverse().Select(change => change.Invert());
     else
         return Empty<DocumentChangeEventArgs>.Array;
 }