public void Dispose() { OnDispose(); mTypeEventSystem.UnRegisterEvent <TCommand>(OnCommandExecute); mTypeEventSystem.Clear(); Container.Clear(); Container = null; }