SharpDisplay: Migrating to new robust client scheme.
3 using System.Collections.ObjectModel;
5 namespace Aga.Controls.Tree
9 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
10 public static readonly TreePath Empty = new TreePath();
12 private object[] _path;
13 public object[] FullPath
18 public object LastNode
23 return _path[_path.Length - 1];
29 public object FirstNode
42 _path = new object[0];
45 public TreePath(object node)
47 _path = new object[] { node };
50 public TreePath(object[] path)
55 public TreePath(TreePath parent, object node)
57 _path = new object[parent.FullPath.Length + 1];
58 for (int i = 0; i < _path.Length - 1; i++)
59 _path[i] = parent.FullPath[i];
60 _path[_path.Length - 1] = node;
65 return (_path.Length == 0);