C# Class Microsoft.Common.Core.Disposables.Disposable

Provides a set of static methods for creating Disposables.
ファイルを表示 Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
Create ( System.Action dispose ) : IDisposable

Creates a disposable object that invokes the specified action when disposed.

Method Details

Create() public static method

Creates a disposable object that invokes the specified action when disposed.
is null.
public static Create ( System.Action dispose ) : IDisposable
dispose System.Action Action to run during the first call to . The action is guaranteed to be run at most once.
return IDisposable