C# 클래스 Microsoft.Common.Core.Disposables.Disposable.AnonymousDisposable

Represents an Action-based disposable.
상속: IDisposable
파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
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