C# Class Simple.Patterns.DisposableAction

Inheritance: IDisposable
显示文件 Open project: juanplopes/simple Class Usage Examples

Public Methods

Method Description
DisposableAction ( System.Action whatToDo ) : System
DisposableAction ( System.Action whatToDo, bool ensureOnlyOneDispose ) : System
Dispose ( ) : void

Method Details

DisposableAction() public method

public DisposableAction ( System.Action whatToDo ) : System
whatToDo System.Action
return System

DisposableAction() public method

public DisposableAction ( System.Action whatToDo, bool ensureOnlyOneDispose ) : System
whatToDo System.Action
ensureOnlyOneDispose bool
return System

Dispose() public method

public Dispose ( ) : void
return void