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 SourceDisposable()
Create a instance of the class Disposable.
Declaration
protected Disposable()
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. |
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 SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
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