/// <summary> /// /// </summary> /// <param name="header"></param> public void UpdateHeader(DbaseFileHeader header) { headerWritten = true; int pos = (int)_writer.BaseStream.Position; _writer.Seek(0, SeekOrigin.Begin); header.WriteHeader(_writer); _writer.Seek(pos, SeekOrigin.Begin); _header = header; }
/// <summary> /// /// </summary> /// <param name="header"></param> public void UpdateHeader(DbaseFileHeader header) { headerWritten = true; int pos = (int)_writer.BaseStream.Position; _writer.Seek(0, SeekOrigin.Begin); header.WriteHeader(_writer); _writer.Seek(pos, SeekOrigin.Begin); _header = header; }
/// <summary> /// /// </summary> /// <param name="header"></param> public void Write(DbaseFileHeader header) { if (header == null) { throw new ArgumentNullException("header"); } if (recordsWritten) { throw new InvalidOperationException("Records have already been written. Header file needs to be written first."); } headerWritten = true; header.WriteHeader(_writer); _header = header; }
/// <summary> /// /// </summary> /// <param name="header"></param> public void Write(DbaseFileHeader header) { if (header == null) throw new ArgumentNullException("header"); if (recordsWritten) throw new InvalidOperationException("Records have already been written. Header file needs to be written first."); headerWritten = true; header.WriteHeader(_writer); _header = header; }