/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; // Suitable nullity checks etc, of course :) hashCode = hashCode * 59 + Type.GetHashCode(); hashCode = hashCode * 59 + TimeLeft.GetHashCode(); hashCode = hashCode * 59 + EndTime.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (TimeLeft != 0L) { hash ^= TimeLeft.GetHashCode(); } if (Message.Length != 0) { hash ^= Message.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }