Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Core.AnonymousDisposable Class Reference

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...

Inheritance diagram for SiliconStudio.Core.AnonymousDisposable:

Public Member Functions

 AnonymousDisposable (Action onDispose)
 Initializes a new instance of the AnonymousDisposable class. More...
 
void Dispose ()
 

Detailed Description

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.

Constructor & Destructor Documentation

SiliconStudio.Core.AnonymousDisposable.AnonymousDisposable ( Action  onDispose)

Initializes a new instance of the AnonymousDisposable class.

Parameters
onDisposeThe anonymous function to invoke when this object is disposed.

Definition at line 20 of file AnonymousDisposable.cs.

Member Function Documentation

void SiliconStudio.Core.AnonymousDisposable.Dispose ( )

Definition at line 29 of file AnonymousDisposable.cs.


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