/// <inheritdoc cref="IEquatable{T}.Equals(T)"/> public bool Equals(WeatherCondition other) { if (other == null) { return(false); } return(ConditionId.Equals(other.ConditionId)); }
/// <inheritdoc /> public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + ConditionId.GetHashCode(); return(hash); } }
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); }