Esempio n. 1
0
        /// <summary>
        /// Serves as the default hash function.
        /// </summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            var hashCode = -910965429;

            hashCode = (hashCode * -1521134295) + ValidData.GetHashCode();
            hashCode = (hashCode * -1521134295) + SampleState.GetHashCode();
            hashCode = (hashCode * -1521134295) + ViewState.GetHashCode();
            hashCode = (hashCode * -1521134295) + SourceTimestamp.GetHashCode();
            hashCode = (hashCode * -1521134295) + InstanceHandle.GetHashCode();
            hashCode = (hashCode * -1521134295) + PublicationHandle.GetHashCode();
            hashCode = (hashCode * -1521134295) + DisposedGenerationCount.GetHashCode();
            hashCode = (hashCode * -1521134295) + NoWritersGenerationCount.GetHashCode();
            hashCode = (hashCode * -1521134295) + SampleRank.GetHashCode();
            hashCode = (hashCode * -1521134295) + GenerationRank.GetHashCode();
            hashCode = (hashCode * -1521134295) + AbsoluteGenerationRank.GetHashCode();
            return(hashCode);
        }