Class DisposableBase
This is a base class for common IDisposable implementation.
Implements
Inherited Members
Namespace: Microsoft.MixedReality.SpatialAlignment
Assembly: cs.temp.dll.dll
Syntax
public class DisposableBase : IDisposable
Remarks
Properties
IsDisposed
Is the current object disposed.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
Boolean |
ObjectName
The name of the current object.
Declaration
protected virtual string ObjectName { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Dispose()
Dispose the current object.
Declaration
public void Dispose()
Finalize()
Declaration
protected void Finalize()
OnManagedDispose()
Override this method to dispose of managed objects.
Declaration
protected virtual void OnManagedDispose()
OnUnmanagedDispose()
Override this method to dispose of unmanaged objects.
Declaration
protected virtual void OnUnmanagedDispose()
ThrowIfDisposed()
A helper method to throw if the current object is disposed.
Declaration
protected void ThrowIfDisposed()