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