Пример #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name">Display name of the composite</param>
        /// <param name="nodes">Children nodes</param>
        protected Composite(string displayName, params Node[] childNodes)
        {
            Name = displayName;

            ChildNodes.AddRange(childNodes.ToList());
        }
Пример #2
0
        //constructor
        protected Composite(string name, params Node[] nodes)
        {
            Name = name;

            ChildNodes.AddRange(nodes.ToList());
        }
Пример #3
0
 public void AddNodeRange(IEnumerable <IMenuNode> nodes)
 {
     ChildNodes.AddRange(nodes);
 }
Пример #4
0
 public DomDocument(IEnumerable <IDomObject> elements) : base()
 {
     ChildNodes.AddRange(elements);
 }
Пример #5
0
 public DomContainer(IEnumerable <IDomObject> elements) : base()
 {
     ChildNodes.AddRange(elements);
 }
Пример #6
0
 public MSBuildTarget(string name, IEnumerable <MSBuildTask> tasks)
 {
     this.name  = name;
     ChildNodes = ChildNodes.AddRange(tasks);
 }