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