public override int GetHashCode() { var hashCode = -781278249; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + CreationDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CreatedBy); hashCode = hashCode * -1521134295 + ModificationDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ModifiedBy); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Remark); return(hashCode); }
public override int GetHashCode() { var hashCode = -307904605; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + CreationDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CreatedBy); hashCode = hashCode * -1521134295 + ModificationDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ModifiedBy); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Brand); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Type); return(hashCode); }
public override bool Equals(object?other) { CovidStatistics otherObject = other as CovidStatistics; return(Id == otherObject.Id && ConfirmedCasesToday == otherObject.ConfirmedCasesToday && ConfirmedCasesTotal == otherObject.ConfirmedCasesTotal && TestsConductedToday == otherObject.TestsConductedToday && TestsConductedTotal == otherObject.TestsConductedTotal && PatientsAdmittedToday == otherObject.PatientsAdmittedToday && PatientsAdmittedTotal == otherObject.PatientsAdmittedTotal && IcuAdmittedToday == otherObject.IcuAdmittedToday && IcuAdmittedTotal == otherObject.IcuAdmittedTotal && VaccinatedFirstDoseTotal.Equals(otherObject.VaccinatedFirstDoseTotal) && VaccinatedFirstDoseToday.Equals(otherObject.VaccinatedFirstDoseToday) && VaccinatedSecondDoseTotal.Equals(otherObject.VaccinatedSecondDoseTotal) && VaccinatedSecondDoseToday.Equals(otherObject.VaccinatedSecondDoseToday) && DeathsCasesTotal.Equals(otherObject.DeathsCasesTotal) && ModificationDate.Equals(otherObject.ModificationDate) && EntryDate.Equals(otherObject.EntryDate)); }
public override int GetHashCode() { var hashCode = -133760364; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + CreationDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CreatedBy); hashCode = hashCode * -1521134295 + ModificationDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ModifiedBy); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(IctsReference); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Tag); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Serial); hashCode = hashCode * -1521134295 + EqualityComparer <ProductDto> .Default.GetHashCode(Product); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + InvoiceDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(InvoiceNumber); hashCode = hashCode * -1521134295 + Price.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(PaidBy); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Owner); hashCode = hashCode * -1521134295 + InstallDate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(InstalledBy); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Remark); hashCode = hashCode * -1521134295 + TeamAsset.GetHashCode(); return(hashCode); }
// Prepares the SDF file header section. Respective properties must be set in advance. // Constitutes "Record 1" according to ISO 25178-71 private void PrepareHeaderSection() { // for single profiles YScale must be 0 if (NumberOfProfiles == 1) { YScale = 0; } if (double.IsNaN(XScale)) { return; } if (double.IsNaN(YScale)) { return; } if (double.IsNaN(ZScale)) { return; } if (!Relaxed) { // the SDF definition suffers from the historical restriction of 65535 points per profile // there is no error message up to now, it is just not possible to create data. if (NumberOfPointsPerProfile > ushort.MaxValue) { return; } if (NumberOfProfiles > ushort.MaxValue) { return; } } // instantiate the StringBuilder for the header section headerSectionSb = new StringBuilder(); if (ForceIsoFormat) { headerSectionSb.AppendLine("aISO-1.0"); } else { headerSectionSb.AppendLine("aBCR-1.0"); } headerSectionSb.AppendLine($"ManufacID = {TruncateManufacID(ManufacurerId)}"); // just to make sure no "=" is added headerSectionSb.AppendLine($"CreateDate = {CreationDate.ToString("ddMMyyyyHHmm")}"); headerSectionSb.AppendLine($"ModDate = {ModificationDate.ToString("ddMMyyyyHHmm")}"); headerSectionSb.AppendLine($"NumPoints = {NumberOfPointsPerProfile}"); headerSectionSb.AppendLine($"NumProfiles = {NumberOfProfiles}"); headerSectionSb.AppendLine($"Xscale = {XScale.ToString("G17")}"); headerSectionSb.AppendLine($"Yscale = {YScale.ToString("G17")}"); headerSectionSb.AppendLine($"Zscale = {ZScale.ToString("G17")}"); headerSectionSb.AppendLine("Zresolution = -1"); // clause 5.2.8, do not modify! headerSectionSb.AppendLine("Compression = 0"); // clause 5.2.9, do not modify! switch (zDataType) { case ZDataType.Double: headerSectionSb.AppendLine("DataType = 7"); break; case ZDataType.Int32: headerSectionSb.AppendLine("DataType = 6"); break; case ZDataType.Int16: headerSectionSb.AppendLine("DataType = 5"); break; default: headerSectionSb.AppendLine("DataType = ?"); // this should not happen! break; } headerSectionSb.AppendLine("CheckType = 0"); // clause 5.2.11, do not modify! headerSectionSb.AppendLine("*"); }
public override string ToString() { return(ModificationDate.ToString("g")); }
public bool Equals(GroupV2 input) { if (input == null) { return(false); } return (( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( GroupType == input.GroupType || (GroupType != null && GroupType.Equals(input.GroupType)) ) && ( MembershipIdCreated == input.MembershipIdCreated || (MembershipIdCreated.Equals(input.MembershipIdCreated)) ) && ( CreationDate == input.CreationDate || (CreationDate != null && CreationDate.Equals(input.CreationDate)) ) && ( ModificationDate == input.ModificationDate || (ModificationDate != null && ModificationDate.Equals(input.ModificationDate)) ) && ( About == input.About || (About != null && About.Equals(input.About)) ) && ( Tags == input.Tags || (Tags != null && Tags.SequenceEqual(input.Tags)) ) && ( MemberCount == input.MemberCount || (MemberCount.Equals(input.MemberCount)) ) && ( IsPublic == input.IsPublic || (IsPublic != null && IsPublic.Equals(input.IsPublic)) ) && ( IsPublicTopicAdminOnly == input.IsPublicTopicAdminOnly || (IsPublicTopicAdminOnly != null && IsPublicTopicAdminOnly.Equals(input.IsPublicTopicAdminOnly)) ) && ( Motto == input.Motto || (Motto != null && Motto.Equals(input.Motto)) ) && ( AllowChat == input.AllowChat || (AllowChat != null && AllowChat.Equals(input.AllowChat)) ) && ( IsDefaultPostPublic == input.IsDefaultPostPublic || (IsDefaultPostPublic != null && IsDefaultPostPublic.Equals(input.IsDefaultPostPublic)) ) && ( ChatSecurity == input.ChatSecurity || (ChatSecurity != null && ChatSecurity.Equals(input.ChatSecurity)) ) && ( Locale == input.Locale || (Locale != null && Locale.Equals(input.Locale)) ) && ( AvatarImageIndex == input.AvatarImageIndex || (AvatarImageIndex.Equals(input.AvatarImageIndex)) ) && ( Homepage == input.Homepage || (Homepage != null && Homepage.Equals(input.Homepage)) ) && ( MembershipOption == input.MembershipOption || (MembershipOption != null && MembershipOption.Equals(input.MembershipOption)) ) && ( DefaultPublicity == input.DefaultPublicity || (DefaultPublicity != null && DefaultPublicity.Equals(input.DefaultPublicity)) ) && ( Theme == input.Theme || (Theme != null && Theme.Equals(input.Theme)) ) && ( BannerPath == input.BannerPath || (BannerPath != null && BannerPath.Equals(input.BannerPath)) ) && ( AvatarPath == input.AvatarPath || (AvatarPath != null && AvatarPath.Equals(input.AvatarPath)) ) && ( ConversationId == input.ConversationId || (ConversationId.Equals(input.ConversationId)) ) && ( EnableInvitationMessagingForAdmins == input.EnableInvitationMessagingForAdmins || (EnableInvitationMessagingForAdmins != null && EnableInvitationMessagingForAdmins.Equals(input.EnableInvitationMessagingForAdmins)) ) && ( BanExpireDate == input.BanExpireDate || (BanExpireDate != null && BanExpireDate.Equals(input.BanExpireDate)) ) && ( Features == input.Features || (Features != null && Features.Equals(input.Features)) ) && ( ClanInfo == input.ClanInfo || (ClanInfo != null && ClanInfo.Equals(input.ClanInfo)) )); }