Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PersonInformation != null ? PersonInformation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ArticleName != null ? ArticleName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ArticleRage.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hashCode = 621761120;

            hashCode = hashCode * -1521134295 + EqualityComparer <Person> .Default.GetHashCode(PersonInformation);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ArticleName);

            hashCode = hashCode * -1521134295 + ArticleRage.GetHashCode();
            return(hashCode);
        }
Beispiel #3
0
 protected bool Equals(Article other)
 {
     return(Equals(PersonInformation, other.PersonInformation) && string.Equals(ArticleName, other.ArticleName) && ArticleRage.Equals(other.ArticleRage));
 }