Ejemplo n.º 1
0
 public void WriteRecord(BinaryWriter writer)
 {
     writer.Write((int)RecordType);
     writer.Write(ProductName.PadRight(60, ' ').Substring(0, 60).ToCharArray());
     writer.Write(LayoutCode);
     writer.Write(NominalCaseSize);
     writer.Write(Compressed ? 1 : 0);
     writer.Write(WeightIndex);
     writer.Write(CasesCount);
     writer.Write(Bias);
     writer.Write(CreationDate.Substring(0, 9).ToCharArray());
     writer.Write(CreationTime.Substring(0, 8).ToCharArray());
     writer.Write(FileLabel.PadRight(64, ' ').Substring(0, 64).ToCharArray());
     writer.Write(new byte[3]);
 }