CSharpGL.UnmanagedArrayBase.Dispose C# (CSharp) Method

Dispose() private method

Dispose managed and unmanaged resources of this instance.
private Dispose ( bool disposing ) : void
disposing bool If disposing equals true, managed and unmanaged resources can be disposed. If disposing equals false, only unmanaged resources can be disposed.
return void
        private void Dispose(bool disposing)
        {
            if (this.disposedValue == false)
            {
                if (disposing)
                {
                    // Dispose managed resources.
                    //DisposeManagedResources();
                } // end if

                // Dispose unmanaged resources.
                DisposeUnmanagedResources();

                UnmanagedArrayBase.disposedCount++;
            } // end if

            this.disposedValue = true;
        }

Same methods

UnmanagedArrayBase::Dispose ( ) : void

Usage Example

Example #1
0
        private void Dispose(bool disposing)
        {
            if (this.disposedValue == false)
            {
                if (disposing)
                {
                    // Dispose managed resources.
                }

                // Dispose unmanaged resources.
                UnmanagedArrayBase array = this.array;
                this.array = null;
                if (array != null)
                {
                    array.Dispose();
                }
            }

            this.disposedValue = true;
        }