public override void Deserialize(IDataReader reader) { newLevel = reader.ReadSByte(); if (newLevel < 0) throw new Exception("Forbidden value on newLevel = " + newLevel + ", it doesn't respect the following condition : newLevel < 0"); jobsDescription = new Types.JobDescription(); jobsDescription.Deserialize(reader); }
public override void Deserialize(ICustomDataInput reader) { newLevel = reader.ReadByte(); if ((newLevel < 0) || (newLevel > 255)) { throw new Exception("Forbidden value on newLevel = " + newLevel + ", it doesn't respect the following condition : (newLevel < 0) || (newLevel > 255)"); } jobsDescription = new Types.JobDescription(); jobsDescription.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { newLevel = reader.ReadSByte(); if (newLevel < 0 || newLevel > 255) { throw new Exception("Forbidden value on newLevel = " + newLevel + ", it doesn't respect the following condition : newLevel < 0 || newLevel > 255"); } jobsDescription = new Types.JobDescription(); jobsDescription.Deserialize(reader); }
public override void Deserialize(IDataReader reader) { newLevel = reader.ReadByte(); jobsDescription = new Types.JobDescription(); jobsDescription.Deserialize(reader); }