示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MetricName.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)AssertionType;
         hashCode = (hashCode * 397) ^ Assertion.GetHashCode();
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (MetricName.Length != 0)
            {
                hash ^= MetricName.GetHashCode();
            }
            if (metric_ != null)
            {
                hash ^= Metric.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (MetricName.Length != 0)
            {
                hash ^= MetricName.GetHashCode();
            }
            hash ^= metricValues_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (MetricName.Length != 0)
            {
                hash ^= MetricName.GetHashCode();
            }
            if (NumRequestsFinishedWithMetric != 0UL)
            {
                hash ^= NumRequestsFinishedWithMetric.GetHashCode();
            }
            if (TotalMetricValue != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TotalMetricValue);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (MetricName.Length != 0)
            {
                hash ^= MetricName.GetHashCode();
            }
            if (StartIndex != 0)
            {
                hash ^= StartIndex.GetHashCode();
            }
            if (PageSize != 0)
            {
                hash ^= PageSize.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }