/// <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 :) if (DeclarationTypeId != null) { hashCode = hashCode * 59 + DeclarationTypeId.GetHashCode(); } if (Answer != null) { hashCode = hashCode * 59 + Answer.GetHashCode(); } if (SessionToken != null) { hashCode = hashCode * 59 + SessionToken.GetHashCode(); } return(hashCode); } }