Beispiel #1
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <remarks>
 /// See the <see cref="Disposer"/> class comments for an example of using an anonymous
 /// dispose method.
 /// </remarks>
 /// <param name="disposeMethod">The method to invoke during disposal.</param>
 public Disposer(Action disposeMethod)
 {
     Conditions.RequireReference(disposeMethod, nameof(disposeMethod));
     this.disposeMethod = disposeMethod;
 }