public void Inject(int index, string xml) { if (_containerBehaviour.Childrens.Count == 0) { _containerBehaviour.Inject(0, xml); } else { throw new Exception("Only one child is allowed"); } }
public void Inject(int index, string xml) { ContainerBehaviour.Inject(index, xml); }