public override bool Equals(object obj) { Accident temp = obj as Accident; if (temp.StartTime != this.StartTime) { return(false); } if (temp.EndTime != this.EndTime) { return(false); } if ((!Equals(temp.Source, this.Source))) { return(false); } return(true); }
public void Collect(Accident accident) { accidents.Add(accident); }