public override void Deserialize(IDataReader reader) { barType = reader.ReadSByte(); if (barType < 0) throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0"); shortcut = Types.ProtocolTypeManager.GetInstance<Types.Shortcut>(reader.ReadShort()); shortcut.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { barType = reader.ReadSByte(); if (barType < 0) { throw new Exception("Forbidden value on barType = " + barType + ", it doesn't respect the following condition : barType < 0"); } shortcut = ProtocolTypeManager.GetInstance <Types.Shortcut>(reader.ReadShort()); shortcut.Deserialize(reader); }
public override void Deserialize(IReader reader) { barType = reader.ReadSByte(); shortcut = ProtocolTypeManager.GetInstance <Types.Shortcut>(reader.ReadUShort()); shortcut.Deserialize(reader); }