Table of Contents

Method Dispose

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Dispose<T>(ref T?)

Disposes specified value and frees resources associated with it.

public static void Dispose<T>(ref T? value) where T : class, IDisposable

Parameters

value T

A value to be disposed.

Type Parameters

T

Type of object to dispose.

Dispose(IDisposable)

Disposes specified value and frees resources associated with it.

public static void Dispose(IDisposable value)

Parameters

value IDisposable

IDisposable object to be disposed.