internal Tree(D data, IEqualityComparer <string> keyComparer) { dictionary = new DictionaryBag <string, Tree <D> >(keyComparer, this); this.data = data; gp = new GlobalProperties(this); }
internal Tree(string key, D data, Tree <D> parent, GlobalProperties gp) { dictionary = new DictionaryBag <string, Tree <D> >(parent.dictionary.Comparer, this); this.data = data; this.parent = parent; this.key = key; this.gp = gp; }
/// <summary> /// All nodes in the tree in a flat list. /// </summary> //public Dictionary<Tree<D>,object> FlatTree { // get { return gp.flatTree; } //} #region Constructors internal Tree(D data) { dictionary = new DictionaryBag <string, Tree <D> >(); this.data = data; gp = new GlobalProperties(this); }