Show / Hide Table of Contents

Class Disposable

Implements a disposable that invokes the given action on dispose.

Inheritance
object
Disposable
Implements
IDisposable
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
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
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(bool)

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

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

Indicates disposing.

Implements

IDisposable

Extension Methods

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