Revenj.TreePath.IsAncestor C# (CSharp) Method

IsAncestor() public method

public IsAncestor ( TreePath other ) : bool
other TreePath
return bool
        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);
        }