protected override void dispose( bool disposeManagedResources )
{
if ( !this.IsDisposed )
{
if ( disposeManagedResources )
{
// Dispose managed resources.
}
// There are no unmanaged resources to release, but
// if we add them, they need to be released here.
if ( bufferPinnedHandle.IsAllocated )
{
bufferPinnedHandle.Free();
}
// Set large fields to null.
bufPtr = IntPtr.Zero;
buffer = null;
}
base.dispose(disposeManagedResources);
}
#endregion IDisposable Implementation