Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return(ModelID.GetHashCode()
            ^ SubscriptionKey.GetHashCode()
            ^ UriBase.GetHashCode()
            ^ ApiVersion.GetHashCode());
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ApiVersion != 0)
            {
                hash ^= ApiVersion.GetHashCode();
            }
            if (DemonstrationName.Length != 0)
            {
                hash ^= DemonstrationName.GetHashCode();
            }
            if (NumberSteps != 0)
            {
                hash ^= NumberSteps.GetHashCode();
            }
            if (NumberEpisodes != 0)
            {
                hash ^= NumberEpisodes.GetHashCode();
            }
            if (MeanReward != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MeanReward);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            var hash = HashSeed;

            hash = hash * HashFactor + typeof(SubsonicServer).GetHashCode();

            if (Url != null)
            {
                hash = hash * HashFactor + Url.GetHashCode();
            }

            if (UserName != null)
            {
                hash = hash * HashFactor + UserName.GetHashCode();
            }

            if (Password != null)
            {
                hash = hash * HashFactor + Password.GetHashCode();
            }

            if (ClientName != null)
            {
                hash = hash * HashFactor + ClientName.GetHashCode();
            }

            if (ApiVersion != null)
            {
                hash = hash * HashFactor + ApiVersion.GetHashCode();
            }

            return(hash);
        }
Exemplo n.º 4
0
        static int ComputeHash(string fullName, ApiVersion apiVersion)
        {
            Contract.Requires(!string.IsNullOrEmpty(fullName));
            Contract.Requires(apiVersion != null);

            return((fullName.GetHashCode() * 397) ^ apiVersion.GetHashCode());
        }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (MinerName != null ? MinerName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MinerVersion != null ? MinerVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApiVersion != null ? ApiVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MiningUrl != null ? MiningUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Intensity.GetHashCode();
         hashCode = (hashCode * 397) ^ (PerformanceState != null ? PerformanceState.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BiosVersion != null ? BiosVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DriverVersion != null ? DriverVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OperatingSystem != null ? OperatingSystem.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 17;

            hash = (hash * 31) + Method.GetHashCode();
            if (Endpoint != null)
            {
                hash = (hash * 31) + Endpoint.GetHashCode();
            }
            hash = (hash * 31) + ApiVersion.GetHashCode();
            if (Body != null)
            {
                hash = (hash * 31) + RemoveWhiteSpace(Body).GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TelemetryScopeId != 0)
            {
                hash ^= TelemetryScopeId.GetHashCode();
            }
            hash ^= events_.GetHashCode();
            hash ^= metrics_.GetHashCode();
            if (ApiVersion.Length != 0)
            {
                hash ^= ApiVersion.GetHashCode();
            }
            if (MessageVersion.Length != 0)
            {
                hash ^= MessageVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Home.Length != 0)
            {
                hash ^= Home.GetHashCode();
            }
            hash ^= sources_.GetHashCode();
            if (Version.Length != 0)
            {
                hash ^= Version.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= keywords_.GetHashCode();
            hash ^= maintainers_.GetHashCode();
            if (Engine.Length != 0)
            {
                hash ^= Engine.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (ApiVersion.Length != 0)
            {
                hash ^= ApiVersion.GetHashCode();
            }
            if (Condition.Length != 0)
            {
                hash ^= Condition.GetHashCode();
            }
            if (Tags.Length != 0)
            {
                hash ^= Tags.GetHashCode();
            }
            if (AppVersion.Length != 0)
            {
                hash ^= AppVersion.GetHashCode();
            }
            if (Deprecated != false)
            {
                hash ^= Deprecated.GetHashCode();
            }
            if (TillerVersion.Length != 0)
            {
                hash ^= TillerVersion.GetHashCode();
            }
            hash ^= Annotations.GetHashCode();
            if (KubeVersion.Length != 0)
            {
                hash ^= KubeVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }