예제 #1
0
        private void Dispose(bool Disposing)
        {
            if (!m_isDisposed && Disposing)
            {
                try
                {
                    if (m_gField != null)
                    {
                        m_gField.Clear();
                        m_gField = null;
                    }
                    if (m_goppaPoly != null)
                    {
                        m_goppaPoly.Clear();
                        m_goppaPoly = null;
                    }
                    if (m_H != null)
                    {
                        m_H.Clear();
                        m_H = null;
                    }
                    if (m_P1 != null)
                    {
                        m_P1.Clear();
                        m_P1 = null;
                    }
                    if (m_qInv != null)
                    {
                        for (int i = 0; i < m_qInv.Length; i++)
                        {
                            m_qInv[i].Clear();
                            m_qInv[i] = null;
                        }
                        m_qInv = null;
                    }
                    m_K = 0;
                    m_N = 0;
                }
                catch { }

                m_isDisposed = true;
            }
        }
예제 #2
0
        private void Dispose(bool Disposing)
        {
            if (!_isDisposed && Disposing)
            {
                try
                {
                    if (_gField != null)
                    {
                        _gField.Clear();
                        _gField = null;
                    }
                    if (_goppaPoly != null)
                    {
                        _goppaPoly.Clear();
                        _goppaPoly = null;
                    }
                    if (_H != null)
                    {
                        _H.Clear();
                        _H = null;
                    }
                    if (_P1 != null)
                    {
                        _P1.Clear();
                        _P1 = null;
                    }
                    if (_qInv != null)
                    {
                        for (int i = 0; i < _qInv.Length; i++)
                        {
                            _qInv[i].Clear();
                            _qInv[i] = null;
                        }
                        _qInv = null;
                    }
                    _K = 0;
                    _N = 0;
                }
                catch { }

                _isDisposed = true;
            }
        }