Multiply by primes hash calculator.
Esempio n. 1
0
        /// <summary>Returns a hash code for this object.</summary>
        /// <returns>A hash code for this object.</returns>
        public override int GetHashCode()
        {
            var hash = new MultiplyByPrimesHash();

            hash.Add(this.LineNumber);
            hash.Add(this.ColumnNumber);
            return(hash.GetHashCode());
        }