Beispiel #1
0
 public static bool IsNullOrDisposed(this IWrappedDisposable entity)
 {
     return(entity == null || entity.IsDisposed());
 }
Beispiel #2
0
 public static void IfNullOrDisposed(IWrappedDisposable disposable, string parameterName)
 {
     It <NullReferenceException>(disposable.IsNullOrDisposed(),
                                 () => new ThrowInfo(
                                     $"Field/Property/Variable {parameterName} is null or disposed and can not be referenced"));
 }