Public Member Functions | List of all members
NanoByte.Common.Disposable Class Reference

Invokes a callback on Dispose. More...

Inheritance diagram for NanoByte.Common.Disposable:

Public Member Functions

 Disposable ([NotNull] Action callback)
 Creates a new disposable. More...
void Dispose ()
 Invokes the callback. More...

Detailed Description

Invokes a callback on Dispose.

Constructor & Destructor Documentation

◆ Disposable()

NanoByte.Common.Disposable.Disposable ( [NotNull] Action  callback)

Creates a new disposable.

callbackThe callback to invoke on Dispose.

Member Function Documentation

◆ Dispose()

void NanoByte.Common.Disposable.Dispose ( )

Invokes the callback.

The documentation for this class was generated from the following file: