public override int GetHashCode() { return(Name?.GetHashCode() ?? 1 + PostalCode?.GetHashCode() ?? 1 + StateName?.GetHashCode() ?? 1 ); }
public override int GetHashCode() { return(Name.GetHashCode() ^ StateAbbreviation.GetHashCode() ^ StateName.GetHashCode() ^ Id.GetHashCode() ^ Latitude.GetHashCode() ^ Longitude.GetHashCode()); }
public override int GetHashCode() { unchecked { var hashCode = (City != null ? City.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (StateName != null ? StateName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Zipcode != null ? Zipcode.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int result = BlockedId != null?BlockedId.GetHashCode() : 0; result = (31 * result) + (StateName != null ? StateName.GetHashCode() : 0); result = (31 * result) + (Service != null ? Service.GetHashCode() : 0); result = (31 * result) + BlockChange.GetHashCode(); result = (31 * result) + BlockEntitlement.GetHashCode(); result = (31 * result) + BlockBilling.GetHashCode(); result = (31 * result) + (EffectiveDate != null ? EffectiveDate.GetHashCode() : 0); result = (31 * result) + Type.GetHashCode(); return(result); }
public override int GetHashCode() { return((Name?.GetHashCode() ?? 1) + (CampusName?.GetHashCode() ?? 1) + (StateName?.GetHashCode() ?? 1)); }
/// <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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (StateName != null) { hashCode = hashCode * 59 + StateName.GetHashCode(); } if (ActivityName != null) { hashCode = hashCode * 59 + ActivityName.GetHashCode(); } if (SchemeId != null) { hashCode = hashCode * 59 + SchemeId.GetHashCode(); } if (SchemeCode != null) { hashCode = hashCode * 59 + SchemeCode.GetHashCode(); } if (PreviousState != null) { hashCode = hashCode * 59 + PreviousState.GetHashCode(); } if (PreviousStateForDirect != null) { hashCode = hashCode * 59 + PreviousStateForDirect.GetHashCode(); } if (PreviousStateForReverse != null) { hashCode = hashCode * 59 + PreviousStateForReverse.GetHashCode(); } if (PreviousActivity != null) { hashCode = hashCode * 59 + PreviousActivity.GetHashCode(); } if (PreviousActivityForDirect != null) { hashCode = hashCode * 59 + PreviousActivityForDirect.GetHashCode(); } if (PreviousActivityForReverse != null) { hashCode = hashCode * 59 + PreviousActivityForReverse.GetHashCode(); } if (ParentProcessId != null) { hashCode = hashCode * 59 + ParentProcessId.GetHashCode(); } if (RootProcessId != null) { hashCode = hashCode * 59 + RootProcessId.GetHashCode(); } if (InstanceStatus != null) { hashCode = hashCode * 59 + InstanceStatus.GetHashCode(); } if (Transitions != null) { hashCode = hashCode * 59 + Transitions.GetHashCode(); } if (History != null) { hashCode = hashCode * 59 + History.GetHashCode(); } if (ProcessParameters != null) { hashCode = hashCode * 59 + ProcessParameters.GetHashCode(); } return(hashCode); } }
/// <summary> /// Serves as the default hash function. /// </summary> /// <returns> /// A hash code for the current object. /// </returns> public override int GetHashCode() { return(StateName.GetHashCode()); }