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

Provides a set of static methods for creating Disposables.
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
Create ( System.Action dispose ) : IDisposable

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

Method Details

Create() public static méthode

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.
Résultat IDisposable