public void SetDataFrom(BinaryReader reader) { _project = reader.ReadString(); _timeSpent = new TimeSpan((long) reader.ReadDouble()); var errors = reader.ReadInt32(); for (int i = 0; i < errors; i++) { var message = new BuildMessage(); message.SetDataFrom(reader); _errors.Add(message); } var warnings = reader.ReadInt32(); for (int i = 0; i < warnings; i++) { var message = new BuildMessage(); message.SetDataFrom(reader); _warnings.Add(message); } }
public void SetDataFrom(BinaryReader reader) { _project = reader.ReadString(); _timeSpent = new TimeSpan((long)reader.ReadDouble()); var errors = reader.ReadInt32(); for (int i = 0; i < errors; i++) { var message = new BuildMessage(); message.SetDataFrom(reader); _errors.Add(message); } var warnings = reader.ReadInt32(); for (int i = 0; i < warnings; i++) { var message = new BuildMessage(); message.SetDataFrom(reader); _warnings.Add(message); } }
public void SetDataFrom(BinaryReader reader) { Project = reader.ReadString(); BuildItem = new BuildMessage(); BuildItem.SetDataFrom(reader); }