Ejemplo n.º 1
0
        /// <summary>
        /// Releases the unmanaged resources used by the WarmStart
        /// and optionally releases the managed resources.
        /// </summary>
        /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    // Free other state (managed objects).
                    coinWarmStart.Dispose();
                }

                // Free your own state (unmanaged objects).
                // Set large fields to null.
                unsafe
                {
                    CoinUtils.DeleteArray(this.colSolution);
                    this.colSolution = null;

                    CoinUtils.DeleteArray(this.rowPrice);
                    this.rowPrice = null;
                }

                this.disposed = true;
            }
        }