Example #1
0
 public ClassWithDependencyImplementingIDisposable(InterfaceWithDispose dependency)
 {
     if (dependency == null)
     {
         throw new ArgumentNullException(nameof(dependency), $"{nameof(dependency)} is null.");
     }
     _dependency = dependency;
 }
Example #2
0
 public ClassWithDependencyImplementingIDisposable(InterfaceWithDispose dependency)
 {
     if (dependency == null)
         throw new ArgumentNullException(nameof(dependency), $"{nameof(dependency)} is null.");
     _dependency = dependency;
 }