public override int GetHashCode() { int hash = 1; if (Successful != false) { hash ^= Successful.GetHashCode(); } if (ErrorMessage.Length != 0) { hash ^= ErrorMessage.GetHashCode(); } if (Token.Length != 0) { hash ^= Token.GetHashCode(); } if (Path.Length != 0) { hash ^= Path.GetHashCode(); } hash ^= returnItems_.GetHashCode(); if (File.Length != 0) { hash ^= File.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) hashCode = hashCode * 59 + Successful.GetHashCode(); if (Notes != null) { hashCode = hashCode * 59 + Notes.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Successful != false) { hash ^= Successful.GetHashCode(); } hash ^= addedKeys_.GetHashCode(); hash ^= replacedKeys_.GetHashCode(); hash ^= deletedKeys_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }