Пример #1
0
 public static T ThrowIfDisposed <T>(this IDisposeCheckable d, T ret)
 {
     d.ThrowIfDisposed();
     return(ret);
 }
Пример #2
0
 public static void ThrowIfDisposed(this IDisposeCheckable d, Action or)
 {
     d.ThrowIfDisposed();
     or();
 }