/// <summary> /// Disposes the scope, calling all dispose actions on the instances that where created in this scope. /// </summary> public void Dispose() { Disposables.Invoke(); if (Finalizers.Count > 0) { foreach (ActionList <object> objectActionList in Finalizers) { objectActionList.Invoke(); } } }