<PackageReference Include="Castle.Windsor" Version="5.1.0" />

CompoundChild

public class CompoundChild : Node
Represents a compound child node.
using Castle.Core.Configuration; using System.Collections.Generic; namespace Castle.MicroKernel.Registration { public class CompoundChild : Node { private readonly Node[] childNodes; internal CompoundChild(string name, Node[] childNodes) : base(name) { this.childNodes = childNodes; } public override void ApplyTo(IConfiguration configuration) { MutableConfiguration val = new MutableConfiguration(base.Name); Node[] array = childNodes; for (int i = 0; i < array.Length; i++) { array[i].ApplyTo(val); } ((List<IConfiguration>)configuration.get_Children()).Add(val); } } }