AK.F1.Timing.Utility.DisposableBase.Dispose C# (CSharp) Method

Dispose() protected method

Disposes of this instance.
protected Dispose ( bool disposing ) : void
disposing bool if being called explicitly, otherwise; /// to indicate being called implicitly by the GC.
return void
        protected void Dispose(bool disposing)
        {
            if(Interlocked.CompareExchange(ref _isDisposed, 1, 0) == 0)
            {
                _isDisposing = true;
                try
                {
                    if(disposing)
                    {
                        GC.SuppressFinalize(this);
                        DisposeOfManagedResources();
                    }
                }
                finally
                {
                    _isDisposing = false;
                }
            }
        }