Exemplo n.º 1
0
 GetHashCode()
 {
     return(NameFirst.GetHashCode()
            ^ NameLast.GetHashCode()
            ^ Dob.GetHashCode()
            ^ IsMarried.GetHashCode());
 }
Exemplo n.º 2
0
            public override int GetHashCode()
            {
                var hashCode = 907988741;

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

                hashCode = hashCode * -1521134295 + Dob.GetHashCode();
                hashCode = hashCode * -1521134295 + EyeColor.GetHashCode();
                return(hashCode);
            }