Table of Contents

Method SafeDispose

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SafeDispose<T>(ref T?)

Safely disposes specified object which supports IDisposable interface.

public static void SafeDispose<T>(ref T? disposable) where T : IDisposable

Parameters

disposable T

Object to dispose.

Type Parameters

T

Type of the object.