Show / Hide Table of Contents

Class Disposable<T>

Represents dispose pattern as a concept.

Inheritance
Object
Disposable<T>
Namespace: DotNext
Assembly: DotNext.Reflection.dll
Syntax
public static class Disposable<T> : object
Type Parameters
Name Description
T

A type which implements dispose pattern.

Remarks

This concept provides access to Dispose method of type T even if it doesn't implement interface directly.

Methods

| Improve this Doc View Source

Dispose(T)

Disposes specified object.

Declaration
public static void Dispose(in T obj)
Parameters
Type Name Description
T obj

An object to dispose passed by reference.

See Also

Implementing Dispose method
  • Improve this Doc
  • View Source
Back to top Generated by DocFX