Class DiscardableBase<T>
Base implementation of cached reference including a finalizer.
Inheritance
System.Object
DiscardableBase<T>
Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public abstract class DiscardableBase<T> : Object, IDiscardable<T>, IReference<T>, IDisposable
Type Parameters
Name | Description |
---|---|
T | Type of the objects kept in the cache. |
Constructors
DiscardableBase()
Declaration
protected DiscardableBase()
Properties
Value
Gets the cached value.
Declaration
public abstract T Value { get; }
Property Value
Type | Description |
---|---|
T |
Methods
Dispose()
Disposes the cached reference.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes the cached reference.
Declaration
protected abstract void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if the dispose was explicit. |
Finalize()
Finalizes the cached reference.
Declaration
protected override void Finalize()
Implements
System.IDisposable