Ejemplo n.º 1
0
 public static T ThrowIfDisposed <T>(this IDisposeCheckable d, T ret)
 {
     d.ThrowIfDisposed();
     return(ret);
 }
Ejemplo n.º 2
0
 public static void ThrowIfDisposed(this IDisposeCheckable d, Action or)
 {
     d.ThrowIfDisposed();
     or();
 }