예제 #1
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            //
            // See the full list of guidelines at
            //   http://go.microsoft.com/fwlink/?LinkID=85237
            // and also the guidance for operator== at
            //   http://go.microsoft.com/fwlink/?LinkId=85238
            //

            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            // TODO: write your implementation of Equals() here
            BusLog bus = (BusLog)obj;

            return(this.Numero == bus.Numero);
        }
예제 #2
0
 public BusLog(BusLog bus)
 {
     this.Numero = bus.Numero;
 }
예제 #3
0
 public Line(int numeroLine, BusLog bus)
 {
     this.Numero = numeroLine;
     this.buses.Add(bus.Numero, bus);
 }
예제 #4
0
 public BusLog(BusLog bus)
 {
     this.Numero = bus.Numero;
 }
예제 #5
0
 public Line(int numeroLine, BusLog bus)
 {
     this.Numero = numeroLine;
     this.buses.Add(bus.Numero, bus);
 }