Table of Contents

Class AutoDispose

Namespace
VpnHood.Net.Toolkit.Utils
Assembly
VpnHood.Net.Toolkit.dll

Provides an IDisposable that runs an action when disposed, for a using scope.

public class AutoDispose : IDisposable
Inheritance
AutoDispose
Implements
Inherited Members
Extension Methods

Constructors

AutoDispose(Action)

Provides an IDisposable that runs an action when disposed, for a using scope.

public AutoDispose(Action disposeAction)

Parameters

disposeAction Action

The action.

Methods

Dispose()

Runs the action, at each call.

public void Dispose()