Exemple #1
0
        /// <summary>
        /// Hashcode function
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int result = SchemaName.GetHashCode() + getHashCode(Props);

            foreach (string s in Symbols)
            {
                result += 23 * s.GetHashCode();
            }
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// Hashcode function
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int result = SchemaName.GetHashCode() + getHashCode(Props);

#pragma warning disable CA1307 // Specify StringComparison
            foreach (string s in Symbols)
            {
                result += 23 * s.GetHashCode();
            }
#pragma warning restore CA1307 // Specify StringComparison
            return(result);
        }
Exemple #3
0
 /// <summary>
 /// Hash code function
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(protect(() => 0, () =>
     {
         int result = SchemaName.GetHashCode();
         foreach (Field f in Fields)
         {
             result += 29 * f.GetHashCode();
         }
         result += getHashCode(Props);
         return result;
     }, this));
 }
Exemple #4
0
 /// <summary>
 /// Hash code function
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(53 * SchemaName.GetHashCode() + 47 * Size + getHashCode(Props));
 }