Example #1
0
 public int GetHashCode(CultureName obj)
 {
     unchecked
     {
         return((EqualityComparer <Culture> .Default.GetHashCode(obj.Id) * 397) ^ (obj.Name != null ? obj.Name.GetHashCode() : 0));
     }
 }
Example #2
0
 public bool Equals(CultureName x, CultureName y)
 {
     if (ReferenceEquals(x, y))
     {
         return(true);
     }
     if (ReferenceEquals(x, null))
     {
         return(false);
     }
     if (ReferenceEquals(y, null))
     {
         return(false);
     }
     if (x.GetType() != y.GetType())
     {
         return(false);
     }
     return(EqualityComparer <Culture> .Default.Equals(x.Id, y.Id) && string.Equals(x.Name, y.Name));
 }
Example #3
0
 public bool Equals(CultureName other)
 {
     return(Equals(this, other));
 }