Beispiel #1
0
        /// <summary>
        /// Returns the hash code value for this message.
        /// TODO(jonskeet): Specify the hash algorithm, but better than the Java one!
        /// </summary>
        public override int GetHashCode()
        {
            int hash = 41;

            hash = (19 * hash) + DescriptorForType.GetHashCode();
            hash = (53 * hash) + Dictionaries.GetHashCode(AllFields);
            hash = (29 * hash) + UnknownFields.GetHashCode();
            return(hash);
        }