Example #1
0
 /// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
 public bool Equals(WeatherCondition other)
 {
     if (other == null)
     {
         return(false);
     }
     return(ConditionId.Equals(other.ConditionId));
 }
Example #2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + ConditionId.GetHashCode();
         return(hash);
     }
 }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ConditionId != 0)
            {
                hash ^= ConditionId.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Parameter != 0)
            {
                hash ^= Parameter.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }