public bool IsDescendant(TreePath other) { if (this.Value == other.Value) return true; return this.Parts.Length > other.Parts.Length && Compare(this.Parts, other.Parts, other.Parts.Length); }
public bool IsAncestor(TreePath other) { if (this.Value == other.Value) return true; return this.Parts.Length < other.Parts.Length && Compare(this.Parts, other.Parts, this.Parts.Length); }