C# Класс Microsoft.Common.Core.Disposables.Disposable.AnonymousDisposable

Represents an Action-based disposable.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
AnonymousDisposable ( System.Action dispose ) : System

Constructs a new disposable with the given action used for disposal.

Dispose ( ) : void

Calls the disposal action if and only if the current instance hasn't been disposed yet.

Описание методов

AnonymousDisposable() публичный Метод

Constructs a new disposable with the given action used for disposal.
public AnonymousDisposable ( System.Action dispose ) : System
dispose System.Action Disposal action which will be run upon calling Dispose.
Результат System

Dispose() публичный Метод

Calls the disposal action if and only if the current instance hasn't been disposed yet.
public Dispose ( ) : void
Результат void