Method | Description | |
---|---|---|
AnonymousDisposable ( System.Action dispose ) : System |
Constructs a new disposable with the given action used for disposal.
|
|
Dispose ( ) : void |
Calls the disposal action if and only if the current instance hasn't been disposed yet.
|
public AnonymousDisposable ( System.Action dispose ) : System | ||
dispose | System.Action | Disposal action which will be run upon calling Dispose. |
return | System |