public static HeaderRecord ParseNextRecord(BinaryReader reader) { var record = new HeaderRecord(); record.ProductName = new String(reader.ReadChars(60)); record.LayoutCode = reader.ReadInt32(); record.NominalCaseSize = reader.ReadInt32(); record.Compressed = (reader.ReadInt32() == 1); record.WeightIndex = reader.ReadInt32(); record.CasesCount = reader.ReadInt32(); record.Bias = reader.ReadDouble(); record.CreationDate = new String(reader.ReadChars(9)); record.CreationTime = new String(reader.ReadChars(8)); record.FileLabel = new String(reader.ReadChars(64)); record.Padding = new String(reader.ReadChars(3)); return record; }