Пример #1
0
        public override int GetHashCode()
        {
            int result = _boundAt != null?_boundAt.GetHashCode() : 0;

            result = 31 * result + ( int )(_lastKnownLearnedInstanceInCluster ^ (( long )(( ulong )_lastKnownLearnedInstanceInCluster >> 32)));
            result = 31 * result + ( int )(_nextInstanceId ^ (( long )(( ulong )_nextInstanceId >> 32)));
            result = 31 * result + (_configuration != null ? _configuration.GetHashCode() : 0);
            return(result);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int result = _role.GetHashCode();

            result = 31 * result + _instanceId.GetHashCode();
            result = 31 * result + _clusterUri.GetHashCode();
            result = 31 * result + _roleUri.GetHashCode();
            return(result);
        }
Пример #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (URI != null ? URI.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #4
0
 /// <summary>
 /// Object hash code
 /// </summary>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FullName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Version?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (URI?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Пример #5
0
        /// <summary>
        ///     Object hash code
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = FullName != null?FullName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (URI != null ? URI.GetHashCode() : 0);
                return(hashCode);
            }
        }
 /// <summary>Serves as the default hash function. </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = URI.GetHashCode();
         hashCode = (hashCode * 397) ^ Transforms.GetHashCode();
         hashCode = (hashCode * 397) ^ DigestMethod.GetHashCode();
         hashCode = (hashCode * 397) ^ DigestValue.GetHashCode();
         return(hashCode);
     }
 }
Пример #7
0
        /// <summary>
        ///     Object hash code
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Name != null?Name.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Customizations != null ? Customizations.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (URI != null ? URI.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (ContactRole != null ? ContactRole.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (SoftwareName != null ? SoftwareName.GetHashCode() : 0);
                return(hashCode);
            }
        }
Пример #8
0
 public override int GetHashCode()
 {
     return(uri.GetHashCode());
 }