CesiumLanguageWriter.HashCode.Combine C# (CSharp) Method

Combine() public static method

Combine hashcodes into a single hashcode.
public static Combine ( ) : int
return int
        public static int Combine(params int[] hashcodes)
        {
            int hash = 17;
            foreach (int hashcode in hashcodes)
            {
                hash = hash * 31 + hashcode;
            }
            return hash;
        }

Usage Example

Example #1
0
 /// <summary>
 /// Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(HashCode.Combine(m_x.GetHashCode(),
                             m_y.GetHashCode()));
 }
HashCode