Revenj.TreePath.IsDescendant C# (CSharp) Method

IsDescendant() public method

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