protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer) { driverIdentification = reader.ReadString(14); replacementIndex = reader.ReadByte(); renewalIndex = reader.ReadByte(); writer.WriteAttributeString("ReplacementIndex", replacementIndex.ToString()); writer.WriteAttributeString("RenewalIndex", renewalIndex.ToString()); writer.WriteString(driverIdentification); }
protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer) { type = (EquipmentType)reader.ReadByte(); issuingMemberState = reader.ReadByte(); driverIdentification = reader.ReadString(14); replacementIndex = reader.ReadByte(); renewalIndex = reader.ReadByte(); writer.WriteAttributeString("Type", type.ToString()); writer.WriteAttributeString("IssuingMemberState", issuingMemberState.ToString()); writer.WriteAttributeString("ReplacementIndex", replacementIndex.ToString()); writer.WriteAttributeString("RenewalIndex", renewalIndex.ToString()); writer.WriteString(driverIdentification); }
// method that will read string from file in specified encoding protected void ProcessInternal(CustomBinaryReader s, Encoding enc) { text = s.ReadString(Length, enc).Trim(); }
// method that will read string from file in specified encoding protected void ProcessInternal(CustomBinaryReader s, Encoding enc) { text=s.ReadString(Length, enc).Trim(); }
protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer) { type=(EquipmentType) reader.ReadByte(); issuingMemberState=reader.ReadByte(); driverIdentification=reader.ReadString(14); replacementIndex=reader.ReadByte(); renewalIndex=reader.ReadByte(); writer.WriteAttributeString("Type", type.ToString()); writer.WriteAttributeString("IssuingMemberState", issuingMemberState.ToString()); writer.WriteAttributeString("ReplacementIndex", replacementIndex.ToString()); writer.WriteAttributeString("RenewalIndex", renewalIndex.ToString()); writer.WriteString(driverIdentification); }
protected override void ProcessInternal(CustomBinaryReader reader) { driverIdentification = reader.ReadString(14); replacementIndex = reader.ReadByte(); renewalIndex = reader.ReadByte(); }