Пример #1
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + type.GetHashCode();
         hash = hash * 23 + tag1.GetHashCode();
         hash = hash * 23 + tag2.GetHashCode();
         return(hash);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     return(MaterialType.GetHashCode());
 }