public void Dispose() { if (CurrentNestedContainer != null) { CurrentNestedContainer.Dispose(); } Container.Dispose(); }