Example #1
0
        /// <summary>
        /// Disposes object
        /// </summary>
        /// <param name="disposing">Flag indicating whether managed resources should be disposed</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!this._disposed)
            {
                if (disposing)
                {
                    // Dispose managed objects
                    if (_mechanism40 != null)
                    {
                        _mechanism40.Dispose();
                        _mechanism40 = null;
                    }

                    if (_mechanism41 != null)
                    {
                        _mechanism41.Dispose();
                        _mechanism41 = null;
                    }

                    if (_mechanism80 != null)
                    {
                        _mechanism80.Dispose();
                        _mechanism80 = null;
                    }

                    if (_mechanism81 != null)
                    {
                        _mechanism81.Dispose();
                        _mechanism81 = null;
                    }
                }

                // Dispose unmanaged objects

                _disposed = true;
            }
        }