private ContainerImpl(string name, ContainerImpl parent) : this(name) { if (null == parent) { throw new ArgumentNullException("parent"); } _parent = parent; }
public IContainer Create(string childContainerName = null) { IContainer result; lock (_syncRoot) { ThrowIfDisposed(); result = new ContainerImpl(childContainerName, this); _disposables.Add(result); } return(result); }