/// <summary>
 /// Actually disposes the current object.
 /// </summary>
 /// <param name="disposing">
 /// Indicates whether the method was invoked from the <see cref="IDisposable.Dispose"/>
 /// implementation or from the finalizer
 /// </param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && _reader != null)
     {
         _reader.Dispose();
     }
 }
Example #2
0
        protected override void DisposeImp(bool disposing)
        {
            //RecordReaderオブジェクトの破棄
            try {
                if (_aRecordReader != null)
                {
                    _aRecordReader.Dispose();
                    _aRecordReader = null;
                }
            } catch (Exception ex) {
                //GCによる回収時には例外を送出しない
                if (disposing)
                {
                    throw;
                }
            }

            //Tranオブジェクトの破棄
            try {
                if (_aTran != null)
                {
                    _aTran.Dispose();
                    _aTran = null;
                }
            } catch (Exception ex) {
                //GCによる回収時には例外を送出しない
                if (disposing)
                {
                    throw;
                }
            }
        }
Example #3
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _recordReader?.Dispose();
            _recordWriter?.Dispose();

            _disposed = true;
        }
 /// <inheritdoc/>
 public void Dispose()
 {
     _innerRecordReader?.Dispose();
 }