Exemplo n.º 1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (NofuBango != null)
         {
             hashCode = hashCode * 59 + NofuBango.GetHashCode();
         }
         if (KakuninBango != null)
         {
             hashCode = hashCode * 59 + KakuninBango.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (KakuninBango != null)
         {
             hashCode = hashCode * 59 + KakuninBango.GetHashCode();
         }
         if (NofuBango != null)
         {
             hashCode = hashCode * 59 + NofuBango.GetHashCode();
         }
         if (NofuGaku != null)
         {
             hashCode = hashCode * 59 + NofuGaku.GetHashCode();
         }
         if (NofuJohoHakkoNichiji != null)
         {
             hashCode = hashCode * 59 + NofuJohoHakkoNichiji.GetHashCode();
         }
         if (NofuJokyo != null)
         {
             hashCode = hashCode * 59 + NofuJokyo.GetHashCode();
         }
         if (NofuKikanSaishuNengappi != null)
         {
             hashCode = hashCode * 59 + NofuKikanSaishuNengappi.GetHashCode();
         }
         if (NofuNichiji != null)
         {
             hashCode = hashCode * 59 + NofuNichiji.GetHashCode();
         }
         if (ShunoKikanBango != null)
         {
             hashCode = hashCode * 59 + ShunoKikanBango.GetHashCode();
         }
         return(hashCode);
     }
 }