/// <summary> /// NOTE: making this a separate method lets the GC do it's job /// </summary> private static void DoAction(Action<IDisposable> action, Action<bool> innerAction) { var obj = new DisposableBaseImpl(innerAction); action(obj); }
/// <summary> /// NOTE: making this a separate method lets the GC do it's job /// </summary> private static void DoAction(Action <IDisposable> action, Action <bool> innerAction) { var obj = new DisposableBaseImpl(innerAction); action(obj); }