IDisposableGeneric

Description

interface Tinman.Core.System.IDisposableGeneric
<T out : IDisposable>

Base interface for IDisposable implementations that provide a base interface as syntactic sugar for IDisposable.AcquireThrow.

Public / Methods

Acquire


[OwnerReturn] [Pure]
public method Acquire → ()

returns → T

The strong reference to this disposable object or null iff this object is no longer valid.

Acquires a strong reference to this disposable object.

The object will not be actually disposed by calls to IDisposable.Dispose when there is at least one strong reference left. Code that calls this method is responsible for calling the IDisposable.Dispose method accordingly.

This method is not intended to be used in performance-critical code. It should only be used to high-level resource management.