예제 #1
0
 public override bool Equals(System.Object otherBandName)
 {
     if (!(otherBandName is bandName))
     {
         return(false);
     }
     else
     {
         BandName newBandName  = (BandName)otherBandName;
         bool     idEquality   = this.GetId() == newBandName.GetId();
         bool     nameEquality = this.GetName() = newBandName.GetBandName();
         return(idEquality && nameEquality);
     }
 }