コード例 #1
0
 public DelimitedRecordSource(DelimitedRecordDescriptor descriptor, String filePath)
 {
     this.descriptor = descriptor;
       this.file = new FileReader(filePath);
       this.positions = new List<Int64>();
       this.recordPosition = this.file.Position;
       this.ReadRecord();
 }
コード例 #2
0
        protected virtual void Dispose(Boolean disposing)
        {
            if (this.disposed)
              {
            return;
              }

              if (disposing)
              {
            if (this.file != null)
            {
              this.file.Close();
              this.file = null;
            }
              }

              this.disposed = true;
        }