Exemple #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);
     }
 }
Exemple #2
0
 /** <inheritdoc /> */
 public override int GetHashCode()
 {
     // ReSharper disable once NonReadonlyMemberInGetHashCode
     return(IntProp.GetHashCode());
 }
Exemple #3
0
 /** <inheritdoc /> */
 public override int GetHashCode()
 {
     return(IntProp.GetHashCode());
 }