/// <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);
 }
Beispiel #2
0
        /// <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);
        }