예제 #1
0
파일: Tree.cs 프로젝트: xstos/alithiatec
 internal Tree(D data, IEqualityComparer <string> keyComparer)
 {
     dictionary = new DictionaryBag <string, Tree <D> >(keyComparer, this);
     this.data  = data;
     gp         = new GlobalProperties(this);
 }
예제 #2
0
파일: Tree.cs 프로젝트: xstos/alithiatec
 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;
 }
예제 #3
0
파일: Tree.cs 프로젝트: xstos/alithiatec
        /// <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);
        }