Table of Contents

Method SafeDisposeObject

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

SafeDisposeObject<T>(ref T?)

Safely disposes specified object which supports IDisposableObject interface.

public static void SafeDisposeObject<T>(ref T? disposable) where T : IDisposableObject

Parameters

disposable T

Object to dispose.

Type Parameters

T

Type of the object.