public bool Equals(WeatherBlessPB other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (WeatherId != other.WeatherId) { return(false); } if (BlessNum != other.BlessNum) { return(false); } if (!BlessRandomPro.Equals(other.BlessRandomPro)) { return(false); } if (BlessShowPro != other.BlessShowPro) { return(false); } return(true); }
public override int GetHashCode() { int hash = 1; if (WeatherId != 0) { hash ^= WeatherId.GetHashCode(); } if (BlessNum != 0) { hash ^= BlessNum.GetHashCode(); } hash ^= BlessRandomPro.GetHashCode(); if (BlessShowPro != 0) { hash ^= BlessShowPro.GetHashCode(); } return(hash); }