Show / Hide Table of Contents

Class Disposable<T>

Represents dispose pattern as a concept.

Inheritance
Object
Disposable<T>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext
Assembly: DotNext.Reflection.dll
Syntax
public static class Disposable<T>
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 IDisposable 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
In This Article
Back to top Generated by DocFX