コード例 #1
0
 public override int GetHashCode()
 {
     if (InnerValue != null)
     {
         return(InnerValue.GetHashCode());
     }
     return(unchecked (521 * typeof(T).GetHashCode()));
 }
コード例 #2
0
 /// <summary>
 /// Serves as a hash function for a <see cref="VKS.Measures.Mass"/> object.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.</returns>
 public override int GetHashCode()
 {
     return(InnerValue.GetHashCode());
 }