コード例 #1
0
        public DbfRecord ReadRecord()
        {
            var dbfRecord = new DbfRecord(this);

            dbfRecord.Read(BinaryReader);
            return(dbfRecord);
        }
コード例 #2
0
 public override void Close()
 {
     try
     {
         DbfTable?.Close();
     }
     finally
     {
         DbfTable  = null;
         DbfRecord = null;
     }
 }
コード例 #3
0
 public DbfDataReader(string path)
 {
     DbfTable  = new DbfTable(path);
     DbfRecord = new DbfRecord(DbfTable);
 }
コード例 #4
0
 public override string GetString(int ordinal)
 {
     return(DbfRecord.GetValue <string>(ordinal));
 }
コード例 #5
0
 public override object GetValue(int ordinal)
 {
     return(DbfRecord.GetValue(ordinal));
 }
コード例 #6
0
 public DbfDataReader(string path, Encoding encoding)
 {
     DbfTable  = new DbfTable(path, encoding);
     DbfRecord = new DbfRecord(DbfTable);
 }
コード例 #7
0
ファイル: DbfTable.cs プロジェクト: Delog-ru/DbfDataReader
 public bool Read(DbfRecord dbfRecord)
 {
     return(dbfRecord.Read(BinaryReader));
 }
コード例 #8
0
 public DbfDataReader(Stream stream, Stream memoStream, DbfDataReaderOptions options)
 {
     _options  = options;
     DbfTable  = new DbfTable(stream, memoStream, options.Encoding);
     DbfRecord = new DbfRecord(DbfTable);
 }
コード例 #9
0
 public DbfDataReader(string path, DbfDataReaderOptions options)
 {
     _options  = options;
     DbfTable  = new DbfTable(path, options.Encoding);
     DbfRecord = new DbfRecord(DbfTable);
 }
コード例 #10
0
 public DbfDataReader(string path)
 {
     DbfTable  = new DbfTable(path);
     DbfRecord = new DbfRecord(DbfTable, new DbfDataReaderOptions());
 }
コード例 #11
0
 public DbfDataReader(string path, Encoding encoding, DbfDataReaderOptions options)
 {
     DbfTable  = new DbfTable(path, encoding);
     DbfRecord = new DbfRecord(DbfTable, options);
 }
コード例 #12
0
 public bool Read(DbfRecord dbfRecord)
 {
     return(dbfRecord.Read(Stream));
 }
コード例 #13
0
        public DbfRecord ReadRecord()
        {
            var dbfRecord = new DbfRecord(this);

            return(!dbfRecord.Read(Stream) ? null : dbfRecord);
        }