public override int GetHashCode() { unchecked { var hashCode = (int)ApiKey; hashCode = (hashCode * 397) ^ MinVersion.GetHashCode(); hashCode = (hashCode * 397) ^ MaxVersion.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hashCode = MinVersion.GetHashCode(); hashCode = CombineHashCode(hashCode, VersionFloatBehavior.GetHashCode()); if (MaxVersion != null) { hashCode = CombineHashCode(hashCode, MaxVersion.GetHashCode()); } hashCode = CombineHashCode(hashCode, IsMaxInclusive.GetHashCode()); return(hashCode); }
public override int GetHashCode() { unchecked { int hashCode = (LicenseKey != null ? LicenseKey.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Application != null ? Application.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MinVersion != null ? MinVersion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MaxVersion != null ? MaxVersion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LicensedUserName != null ? LicensedUserName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LicensedUserEmail != null ? LicensedUserEmail.GetHashCode() : 0); hashCode = (hashCode * 397) ^ StartDate.GetHashCode(); hashCode = (hashCode * 397) ^ EndDate.GetHashCode(); hashCode = (hashCode * 397) ^ (CustomValues != null ? CustomValues.GetHashCode() : 0); return(hashCode); } }