예제 #1
0
 public bool IsDescendantOf(LazyObservableTree <T> other)
 {
     if (other == null || !ReferenceEquals(this.Root, other.Root))
     {
         return(false);
     }
     return(this.EnumerateAncestors().Any(ancestor => ReferenceEquals(ancestor, other)));
 }
예제 #2
0
        public override ObservableSortedTree <T> ShallowClone()
        {
            var clone = new LazyObservableTree <T>(this.Value, this.Comparer, this.ChildFactory);

            return(clone);
        }
예제 #3
0
 public bool IsInSameTreeAs(LazyObservableTree <T> other)
 {
     return(ReferenceEquals(this.Root, other.Root));
 }