private bool Equals(StorageEventTableEntity other) { return(string.Equals(PartitionKey, other.PartitionKey) && string.Equals(RowKey, other.RowKey) && Created.Equals(other.Created) && Modified.Equals(other.Modified) && Deleted.Equals(other.Deleted) && string.Equals(Data, other.Data)); }
/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="other">The <see cref="UiListItem"/> to compare with the current <see cref="UiListItem"/>.</param> /// <returns><c>true</c> if the specified object is equal to the current object; otherwise, <c>false</c>.</returns> /// <stable>ICU 55</stable> public bool Equals(UiListItem other) { if (ReferenceEquals(this, other)) { return(true); } return(NameInDisplayLocale.Equals(other.NameInDisplayLocale) && NameInSelf.Equals(other.NameInSelf) && Minimized.Equals(other.Minimized) && Modified.Equals(other.Modified)); }
public bool Equals(CakeDto other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id == other.Id && Modified.Equals(other.Modified)); }
/// <summary> /// Returns true if RecipeObjectMeta instances are equal /// </summary> /// <param name="other">Instance of RecipeObjectMeta to be compared</param> /// <returns>Boolean</returns> public bool Equals(RecipeObjectMeta other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Url == other.Url || Url != null && Url.Equals(other.Url) ) && ( Images == other.Images || Images != null && Images.Equals(other.Images) ) && ( Source == other.Source || Source != null && Source.Equals(other.Source) ) && ( Cuisine == other.Cuisine || Cuisine != null && Cuisine.Equals(other.Cuisine) ) && ( Created == other.Created || Created != null && Created.Equals(other.Created) ) && ( Modified == other.Modified || Modified != null && Modified.Equals(other.Modified) ) && ( NutrientsNotice == other.NutrientsNotice || NutrientsNotice != null && NutrientsNotice.Equals(other.NutrientsNotice) )); }
/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns> /// <stable>ICU 55</stable> public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null || !(obj is UiListItem)) { return(false); } UiListItem other = (UiListItem)obj; return(NameInDisplayLocale.Equals(other.NameInDisplayLocale) && NameInSelf.Equals(other.NameInSelf) && Minimized.Equals(other.Minimized) && Modified.Equals(other.Modified)); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <returns> /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false. /// </returns> /// <param name="other">An object to compare with this object.</param> public bool Equals(ApisJson other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Name, other.Name) && string.Equals(Description, other.Description) && string.Equals(Image, other.Image) && string.Equals(Url, other.Url) && Created.Equals(other.Created) && Modified.Equals(other.Modified) && string.Equals(SpecificationVersion, other.SpecificationVersion)); }
private bool Equals(IAgent other) { if (!(AgentID == other.AgentID && MachineID == other.MachineID && DeviceGuid == other.DeviceGuid && CustomerID == other.CustomerID && CustomerName == other.CustomerName && FolderID == other.FolderID && AgentName == other.AgentName && SystemName == other.SystemName && MachineName == other.MachineName && DomainName == other.DomainName && CurrentLoggedUsers == other.CurrentLoggedUsers && ComputerDescription == other.ComputerDescription && Monitored == other.Monitored && Nullable.Equals(LastPatchManagementReceived, other.LastPatchManagementReceived) && AgentVersion == other.AgentVersion && Favorite == other.Favorite && ThresholdID == other.ThresholdID && MonitoredAgentID == other.MonitoredAgentID && Created.Equals(other.Created) && Modified.Equals(other.Modified) && Online == other.Online && ReportedFromIP == other.ReportedFromIP && AppViewUrl == other.AppViewUrl && Motherboard == other.Motherboard && Processor == other.Processor && Memory == other.Memory && Display == other.Display && Sound == other.Sound && ProcessorCoresCount == other.ProcessorCoresCount && SystemDrive == other.SystemDrive && ProcessorClock == other.ProcessorClock && Vendor == other.Vendor && VendorSerialNumber == other.VendorSerialNumber && VendorBrandModel == other.VendorBrandModel && ProductName == other.ProductName && OS == other.OS && OSType == other.OSType && OSVersion == other.OSVersion && OSBuild == other.OSBuild && WindowsSerialNumber == other.WindowsSerialNumber && Office == other.Office && OfficeSP == other.OfficeSP && OfficeOEM == other.OfficeOEM && OfficeSerialNumber == other.OfficeSerialNumber && OfficeFullVersion == other.OfficeFullVersion && LastLoginUser == other.LastLoginUser)) { return(false); } if (!(HardwareDisks ?? new IHardwareDisk[0]).OrderBy(x => x.Drive).SequenceEqual((other.HardwareDisks ?? new IHardwareDisk[0]).OrderBy(x => x.Drive))) { return(false); } if (!(MacAddresses ?? new string[0]).OrderBy(x => x).SequenceEqual((other.MacAddresses ?? new string[0]).OrderBy(x => x))) { return(false); } if (!(IpAddresses ?? new string[0]).OrderBy(x => x).SequenceEqual((other.IpAddresses ?? new string[0]).OrderBy(x => x))) { return(false); } return(true); }