Show / Hide Table of Contents

Class Disposable

Implements a disposable that invokes the given action on dispose.

Inheritance
System.Object
Disposable
Implements
System.IDisposable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Infrastructure
Assembly: Sartorius.SAF.dll
Syntax
public class Disposable : IDisposable

Constructors

View Source

Disposable()

Create a instance of the class Disposable.

Declaration
protected Disposable()
View Source

Disposable(Action)

Creates a new instance of the Disposable class.

Declaration
public Disposable(Action onDisposing)
Parameters
Type Name Description
System.Action onDisposing

The action that is invoked on disposing.

View Source

Disposable(IDisposable)

Creates a new instance of the Disposable class.

Declaration
public Disposable(IDisposable disposable)
Parameters
Type Name Description
System.IDisposable disposable

The action that is invoked on disposing.

Methods

View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
View Source

Dispose(Boolean)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Indicates disposing.

Implements

System.IDisposable

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX