![]() |
Paradox Game Engine
v1.0.0 beta06
|
This class allows implementation of IDisposable using anonymous functions. The anonymous function will be invoked only on the first call to the Dispose method. More...
Public Member Functions | |
AnonymousDisposable (Action onDispose) | |
Initializes a new instance of the AnonymousDisposable class. More... | |
void | Dispose () |
This class allows implementation of IDisposable using anonymous functions. The anonymous function will be invoked only on the first call to the Dispose method.
Definition at line 11 of file AnonymousDisposable.cs.
SiliconStudio.Core.AnonymousDisposable.AnonymousDisposable | ( | Action | onDispose | ) |
Initializes a new instance of the AnonymousDisposable class.
onDispose | The anonymous function to invoke when this object is disposed. |
Definition at line 20 of file AnonymousDisposable.cs.
void SiliconStudio.Core.AnonymousDisposable.Dispose | ( | ) |
Definition at line 29 of file AnonymousDisposable.cs.