Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void Collect(Accident accident)
 {
     accidents.Add(accident);
 }