Esempio n. 1
0
        public PluginTreeNode(PluginTree tree, string name, object value) : base(name, null)
        {
            if (tree == null)
            {
                throw new ArgumentNullException("tree");
            }

            _tree      = tree;
            _children  = new PluginTreeNodeCollection(this);
            this.Value = value;
        }
Esempio n. 2
0
        //该构造函数用来构造根节点专用
        internal PluginTreeNode(PluginTree tree) : base("/", true)
        {
            if (tree == null)
            {
                throw new ArgumentNullException("tree");
            }

            _tree      = tree;
            _children  = new PluginTreeNodeCollection(this);
            this.Value = null;
        }
Esempio n. 3
0
 //该构造函数用来构造根节点专用
 internal PluginTreeNode(PluginTree tree) : base("/", true)
 {
     _tree      = tree ?? throw new ArgumentNullException(nameof(tree));
     _children  = new PluginTreeNodeCollection(this);
     this.Value = null;
 }