Table of Contents

Class CallbackOnDispose

Namespace
ICSharpCode.Decompiler.Util
Assembly
ICSharpCode.Decompiler.dll

Invokes an action when it is disposed.

public sealed class CallbackOnDispose : IDisposable
Inheritance
CallbackOnDispose
Implements
Inherited Members

Remarks

This class ensures the callback is invoked at most once, even when Dispose is called on multiple threads.

Constructors

CallbackOnDispose(Action)

public CallbackOnDispose(Action action)

Parameters

action Action

Methods

Dispose()

public void Dispose()