Class Disposable
Implements a disposable that invokes the given action on dispose.
Implements
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 |
|---|---|---|
| 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 |
|---|---|---|
| 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(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. |