Beispiel #1
0
        /// <summary>
        /// Serves as a hash function for a particular type.
        /// </summary>
        /// <returns>
        /// A hash code for the current <see cref="T:System.Object"/>.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public override int GetHashCode()
        {
            int cName = ConnectorName == null ? 0 : ConnectorName.GetHashCode();
            int rUri  = RepositoryUri == null ? 0 : RepositoryUri.GetHashCode();
            int rId   = RepositoryId == null ? 0 : RepositoryId.GetHashCode();

            return(cName ^ rUri ^ rId);
        }