public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is CreateCustomerRequest other && ((IdempotencyKey == null && other.IdempotencyKey == null) || (IdempotencyKey?.Equals(other.IdempotencyKey) == true)) && ((GivenName == null && other.GivenName == null) || (GivenName?.Equals(other.GivenName) == true)) && ((FamilyName == null && other.FamilyName == null) || (FamilyName?.Equals(other.FamilyName) == true)) && ((CompanyName == null && other.CompanyName == null) || (CompanyName?.Equals(other.CompanyName) == true)) && ((Nickname == null && other.Nickname == null) || (Nickname?.Equals(other.Nickname) == true)) && ((EmailAddress == null && other.EmailAddress == null) || (EmailAddress?.Equals(other.EmailAddress) == true)) && ((Address == null && other.Address == null) || (Address?.Equals(other.Address) == true)) && ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) && ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((Birthday == null && other.Birthday == null) || (Birthday?.Equals(other.Birthday) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Customer other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((Cards == null && other.Cards == null) || (Cards?.Equals(other.Cards) == true)) && ((GivenName == null && other.GivenName == null) || (GivenName?.Equals(other.GivenName) == true)) && ((FamilyName == null && other.FamilyName == null) || (FamilyName?.Equals(other.FamilyName) == true)) && ((Nickname == null && other.Nickname == null) || (Nickname?.Equals(other.Nickname) == true)) && ((CompanyName == null && other.CompanyName == null) || (CompanyName?.Equals(other.CompanyName) == true)) && ((EmailAddress == null && other.EmailAddress == null) || (EmailAddress?.Equals(other.EmailAddress) == true)) && ((Address == null && other.Address == null) || (Address?.Equals(other.Address) == true)) && ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) && ((Birthday == null && other.Birthday == null) || (Birthday?.Equals(other.Birthday) == true)) && ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) && ((Note == null && other.Note == null) || (Note?.Equals(other.Note) == true)) && ((Preferences == null && other.Preferences == null) || (Preferences?.Equals(other.Preferences) == true)) && ((Groups == null && other.Groups == null) || (Groups?.Equals(other.Groups) == true)) && ((CreationSource == null && other.CreationSource == null) || (CreationSource?.Equals(other.CreationSource) == true)) && ((GroupIds == null && other.GroupIds == null) || (GroupIds?.Equals(other.GroupIds) == true)) && ((SegmentIds == null && other.SegmentIds == null) || (SegmentIds?.Equals(other.SegmentIds) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is TeamMember other && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) && ((IsOwner == null && other.IsOwner == null) || (IsOwner?.Equals(other.IsOwner) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((GivenName == null && other.GivenName == null) || (GivenName?.Equals(other.GivenName) == true)) && ((FamilyName == null && other.FamilyName == null) || (FamilyName?.Equals(other.FamilyName) == true)) && ((EmailAddress == null && other.EmailAddress == null) || (EmailAddress?.Equals(other.EmailAddress) == true)) && ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((AssignedLocations == null && other.AssignedLocations == null) || (AssignedLocations?.Equals(other.AssignedLocations) == true))); }
public override bool Equals(object obj) { if (obj is UWP uwp) { return(FamilyName.Equals(uwp.FamilyName)); } else { return(false); } }
public override bool Equals(object obj) { if (obj is UWP uwp) { return(FamilyName.Equals(uwp.FamilyName, StringComparison.CurrentCultureIgnoreCase)); } else { return(false); } }
public override bool Equals(object obj) { var uwp = obj as UWP; if (uwp != null) { return(FamilyName.Equals(uwp.FamilyName)); } else { return(false); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is InvoiceRecipient other && ((CustomerId == null && other.CustomerId == null) || (CustomerId?.Equals(other.CustomerId) == true)) && ((GivenName == null && other.GivenName == null) || (GivenName?.Equals(other.GivenName) == true)) && ((FamilyName == null && other.FamilyName == null) || (FamilyName?.Equals(other.FamilyName) == true)) && ((EmailAddress == null && other.EmailAddress == null) || (EmailAddress?.Equals(other.EmailAddress) == true)) && ((Address == null && other.Address == null) || (Address?.Equals(other.Address) == true)) && ((PhoneNumber == null && other.PhoneNumber == null) || (PhoneNumber?.Equals(other.PhoneNumber) == true)) && ((CompanyName == null && other.CompanyName == null) || (CompanyName?.Equals(other.CompanyName) == true))); }
private bool CheckExactMatch(UserObject user) { bool equal = true; if (!String.IsNullOrEmpty(UserName)) { equal = equal && UserName.Equals(user.UserName); } if (!String.IsNullOrEmpty(FamilyName)) { equal = equal && FamilyName.Equals(user.FamilyName); } if (!String.IsNullOrEmpty(GivenName)) { equal = equal && GivenName.Equals(user.GivenName); } if (!String.IsNullOrEmpty(EMail)) { equal = equal && EMail.Equals(user.EMail); } return(equal); }
public override bool Equals(Element other) { DoorElement door2 = other as DoorElement; if (door2 == null) { return(false); } if (ReferenceEquals(this, door2)) { return(true); } var param1 = Parameters.Where(p => !p.Name.Equals(Options.Instance.DoorHostWallParameter, StringComparison.OrdinalIgnoreCase)).ToList(); var param2 = door2.Parameters.Where(p => !p.Name.Equals(Options.Instance.DoorHostWallParameter, StringComparison.OrdinalIgnoreCase)).ToList(); return(FamilyName.Equals(door2.FamilyName, StringComparison.OrdinalIgnoreCase) && FamilySymbolName.Equals(door2.FamilySymbolName, StringComparison.OrdinalIgnoreCase) && Direction.Equals(door2.Direction) && LocationPoint.Equals(door2.LocationPoint) && (HostWall != null && HostWall.Count == door2.HostWall.Count) && Parameter.Equal(param1, param2)); }
/// <summary> /// Returns true if Individual instances are equal /// </summary> /// <param name="other">Instance of Individual to be compared</param> /// <returns>Boolean</returns> public bool Equals(Individual other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Title == other.Title || Title != null && Title.Equals(other.Title) ) && ( GivenName == other.GivenName || GivenName != null && GivenName.Equals(other.GivenName) ) && ( FamilyName == other.FamilyName || FamilyName != null && FamilyName.Equals(other.FamilyName) ) && ( MiddleName == other.MiddleName || MiddleName != null && MiddleName.Equals(other.MiddleName) ) && ( Href == other.Href || Href != null && Href.Equals(other.Href) ) && ( Gender == other.Gender || Gender != null && Gender.Equals(other.Gender) ) && ( PlaceOfBirth == other.PlaceOfBirth || PlaceOfBirth != null && PlaceOfBirth.Equals(other.PlaceOfBirth) ) && ( CountryOfBirth == other.CountryOfBirth || CountryOfBirth != null && CountryOfBirth.Equals(other.CountryOfBirth) ) && ( Nationality == other.Nationality || Nationality != null && Nationality.Equals(other.Nationality) ) && ( MaritalStatus == other.MaritalStatus || MaritalStatus != null && MaritalStatus.Equals(other.MaritalStatus) ) && ( BirthDate == other.BirthDate || BirthDate != null && BirthDate.Equals(other.BirthDate) ) && ( FullName == other.FullName || FullName != null && FullName.Equals(other.FullName) ) && ( FormattedName == other.FormattedName || FormattedName != null && FormattedName.Equals(other.FormattedName) ) && ( Location == other.Location || Location != null && Location.Equals(other.Location) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) )); }