예제 #1
0
 public bool Equals(Dealer other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other == this || DealerId.Equals(other.DealerId));
 }
예제 #2
0
 public override int GetHashCode()
 {
     return(DealerId == null ? 0 : DealerId.GetHashCode());
 }