NamedChild
Represents a named child.
using Castle.Core.Configuration;
using System.Collections.Generic;
namespace Castle.MicroKernel.Registration
{
public class NamedChild : Node
{
internal NamedChild(string name)
: base(name)
{
}
public override void ApplyTo(IConfiguration configuration)
{
MutableConfiguration item = new MutableConfiguration(base.Name);
((List<IConfiguration>)configuration.get_Children()).Add(item);
}
public SimpleChild Eq(string value)
{
return new SimpleChild(base.Name, value);
}
public SimpleChild Eq(object value)
{
string value2 = (value != null) ? value.ToString() : string.Empty;
return new SimpleChild(base.Name, value2);
}
public ComplexChild Eq(IConfiguration configNode)
{
return new ComplexChild(base.Name, configNode);
}
public CompoundChild Eq(params Node[] childNodes)
{
return new CompoundChild(base.Name, childNodes);
}
}
}