Structure for hierarchical modeling. Supports labels separated by dots. Only alphanumeric values allowed for labels. eg: Level1.Level2.Level3
示例#1
0
 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);
 }
示例#2
0
 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);
 }