Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + IntProp.GetHashCode();
         hash = hash * 23 + StringProp.GetHashCode();
         hash = hash * 23 + BoolField.GetHashCode();
         hash = hash * 23 + ListOfString.GetHashCode();
         foreach (var s in ListOfString)
         {
             hash = hash * 23 + s.GetHashCode();
         }
         return(hash);
     }
 }
Exemplo n.º 2
0
 /** <inheritdoc /> */
 public override int GetHashCode()
 {
     // ReSharper disable once NonReadonlyMemberInGetHashCode
     return(IntProp.GetHashCode());
 }
Exemplo n.º 3
0
 /** <inheritdoc /> */
 public override int GetHashCode()
 {
     return(IntProp.GetHashCode());
 }