Example #1
0
        /// <summary>
        /// このオブジェクトが保持する managed および unmanaged オブジェクトを解放する.
        /// unmanaged オブジェクトは,引数にかかわらず解放される.
        /// </summary>
        /// <param name="disposing">managedオブジェクトを解放するときはtrueを,それ以外はfalseを指定する.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // managed code
                if (this.stream != null)
                {
                    this.stream.Close();
                    this.stream = null;
                }
                this.format = null;

                this.leftTopCell = null;
                this.header      = null;
                this.indexes     = null;
            }
            // unmanaged code
        }
Example #2
0
 private void _XSV(Stream stream, XsvFormat format)
 {
     this.stream = stream;
     this.format = format;
 }
Example #3
0
 /// <summary>
 /// XSVオブジェクトを構築する.
 /// </summary>
 /// <param name="stream">Read/Write対象となるStreamオブジェクト</param>
 /// <param name="format">データの扱いを決定するフォーマットオブジェクト</param>
 public XSV(Stream stream, XsvFormat format)
 {
     _XSV(stream, format);
 }
Example #4
0
 private void _XSV(Stream stream, XsvFormat format)
 {
     this.stream = stream;
     this.format = format;
 }
Example #5
0
 /// <summary>
 /// XSV�I�u�W�F�N�g��\�z����D
 /// </summary>
 /// <param name="stream">Read/Write�ΏۂƂȂ�Stream�I�u�W�F�N�g</param>
 /// <param name="format">�f�[�^�̈�������肷��t�H�[�}�b�g�I�u�W�F�N�g</param>
 public XSV(Stream stream, XsvFormat format)
 {
     _XSV(stream, format);
 }
Example #6
0
        /// <summary>
        /// ���̃I�u�W�F�N�g���ێ����� managed ����� unmanaged �I�u�W�F�N�g��������D
        /// unmanaged �I�u�W�F�N�g�́C�����ɂ�����炸��������D
        /// </summary>
        /// <param name="disposing">managed�I�u�W�F�N�g��������Ƃ���true��C����ȊO��false��w�肷��D</param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // managed code
                if (this.stream != null)
                {
                    this.stream.Close();
                    this.stream = null;
                }
                this.format = null;

                this.leftTopCell = null;
                this.header = null;
                this.indexes = null;
            }
            // unmanaged code
        }