Beispiel #1
0
//Overide Method
        public override bool Equals(System.Object otherBand)
        {
            if (!(otherBand is Band))
            {
                return(false);
            }
            else
            {
                Band newBand          = (Band)otherBand;
                bool idEquality       = this.GetId() == newBand.GetId();
                bool bandNameEquality = this.GetBand() == newBand.GetBand();
                return(idEquality && bandNameEquality);
            }
        }