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; }
//该构造函数用来构造根节点专用 internal PluginTreeNode(PluginTree tree) : base("/", true) { if (tree == null) { throw new ArgumentNullException("tree"); } _tree = tree; _children = new PluginTreeNodeCollection(this); this.Value = null; }
//该构造函数用来构造根节点专用 internal PluginTreeNode(PluginTree tree) : base("/", true) { _tree = tree ?? throw new ArgumentNullException(nameof(tree)); _children = new PluginTreeNodeCollection(this); this.Value = null; }