Exemplo n.º 1
0
 public bool Equals(Number obj)
 {
     if (ReferenceEquals(null, obj))
     {
         return(false);
     }
     return(Territory.Equals(obj.Territory) &&
            NationalString.Equals(obj.NationalString));
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + Territory.GetHashCode();
         hash = hash * 23 + NationalString.GetHashCode();
         return(hash);
     }
 }