Пример #1
0
        /// <summary>
        /// Serves as a hash function for a particular type.
        /// </summary>
        /// <returns>A hash code for the Object.</returns>
        public override int GetHashCode()
        {
            int sourceArtifacyhash = SourceArtifactId.GetHashCode();
            int targetArtifactHash = TargetArtifactId.GetHashCode();
            int probabilityHash    = Score.GetHashCode();

            int hash = sourceArtifacyhash ^ targetArtifactHash ^ probabilityHash;

            return(hash);
        }