Share via


DisposableHelper.TryDisposeAndSetToNull<TDisposable> Method

Examine the referenced field and if it is IDisposable, dispose it. Also set it to null.

Namespace: Lumia.Imaging
Assembly: Lumia.Imaging.Managed (in Lumia.Imaging.Managed.dll) Version: 0.0.0.0

Syntax

public static void TryDisposeAndSetToNull<TDisposable>(
    ref TDisposable obj
)
'Declaration
Public Shared Sub TryDisposeAndSetToNull(Of TDisposable) ( 
    ByRef obj As TDisposable
)
public:
generic<typename TDisposable>
static void TryDisposeAndSetToNull(
    TDisposable% obj
)
JavaScript does not support generic types or methods.

Parameters

  • obj
    Type: TDisposable%

    [Missing <param name="obj"/> documentation for "M:Lumia.Imaging.DisposableHelper.TryDisposeAndSetToNull``1(``0@)"]

Type Parameters

  • TDisposable
    [Missing <typeparam name="TDisposable"/> documentation for "M:Lumia.Imaging.DisposableHelper.TryDisposeAndSetToNull``1(``0@)"]

Version Information

Lumia Imaging SDK

Supported in: 3.0

See Also

DisposableHelper Class

DisposableHelper.DisposableHelper Members

Lumia.Imaging Namespace