/// <inheritdoc /> /// <summary> /// Returns true if UpdateMeetupDraftParameters instances are equal /// </summary> /// <param name="other">Instance of UpdateMeetupDraftParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(UpdateMeetupDraftParameters other) { #pragma warning disable IDE0041 // Use 'is null' check if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } #pragma warning disable CA1309 // Use ordinal stringcomparison #pragma warning disable CA1307 // Specify StringComparison #pragma warning disable SA1515 // Single-line comment must be preceded by blank line #pragma warning disable SA1009 // Closing parenthesis must be spaced correctly return (#pragma warning disable SA1119 // Statement must not use unnecessary parenthesis ( // ReSharper disable once RedundantNameQualifier string.Equals(Name, other.Name) || (Name != null && Name.Equals(other.Name)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(VenueId, other.VenueId) || (VenueId != null && VenueId.Equals(other.VenueId)) ) && ( SpeakerIds == other.SpeakerIds || (SpeakerIds != null && SpeakerIds.SequenceEqual(other.SpeakerIds)) ) && ( TalkIds == other.TalkIds || (TalkIds != null && TalkIds.SequenceEqual(other.TalkIds)) ) && ( FriendIds == other.FriendIds || (FriendIds != null && FriendIds.SequenceEqual(other.FriendIds)) )); #pragma warning restore SA1119 // Statement must not use unnecessary parenthesis #pragma warning restore SA1009 // Closing parenthesis must be spaced correctly #pragma warning restore SA1515 // Single-line comment must be preceded by blank line #pragma warning restore CA1307 // Specify StringComparison #pragma warning restore CA1309 // Use ordinal stringcomparison }
/// <inheritdoc /> /// <summary> /// Returns true if UpdateSpeakerDraftParameters instances are equal /// </summary> /// <param name="other">Instance of UpdateSpeakerDraftParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(UpdateSpeakerDraftParameters other) { #pragma warning disable IDE0041 // Use 'is null' check if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } #pragma warning disable CA1309 // Use ordinal stringcomparison #pragma warning disable CA1307 // Specify StringComparison #pragma warning disable SA1515 // Single-line comment must be preceded by blank line #pragma warning disable SA1009 // Closing parenthesis must be spaced correctly return (#pragma warning disable SA1119 // Statement must not use unnecessary parenthesis ( // ReSharper disable once RedundantNameQualifier string.Equals(FirstName, other.FirstName) || (FirstName != null && FirstName.Equals(other.FirstName)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(LastName, other.LastName) || (LastName != null && LastName.Equals(other.LastName)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(CompanyName, other.CompanyName) || (CompanyName != null && CompanyName.Equals(other.CompanyName)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(CompanyUrl, other.CompanyUrl) || (CompanyUrl != null && CompanyUrl.Equals(other.CompanyUrl)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(Description, other.Description) || (Description != null && Description.Equals(other.Description)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(BlogsUrl, other.BlogsUrl) || (BlogsUrl != null && BlogsUrl.Equals(other.BlogsUrl)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(ContactsUrl, other.ContactsUrl) || (ContactsUrl != null && ContactsUrl.Equals(other.ContactsUrl)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(TwitterUrl, other.TwitterUrl) || (TwitterUrl != null && TwitterUrl.Equals(other.TwitterUrl)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(HabrUrl, other.HabrUrl) || (HabrUrl != null && HabrUrl.Equals(other.HabrUrl)) ) && ( // ReSharper disable once RedundantNameQualifier string.Equals(GitHubUrl, other.GitHubUrl) || (GitHubUrl != null && GitHubUrl.Equals(other.GitHubUrl)) ) && ( MeetupIds == other.MeetupIds || (MeetupIds != null && MeetupIds.SequenceEqual(other.MeetupIds)) ) && ( TalkIds == other.TalkIds || (TalkIds != null && TalkIds.SequenceEqual(other.TalkIds)) ) && ( VenueIds == other.VenueIds || (VenueIds != null && VenueIds.SequenceEqual(other.VenueIds)) )); #pragma warning restore SA1119 // Statement must not use unnecessary parenthesis #pragma warning restore SA1009 // Closing parenthesis must be spaced correctly #pragma warning restore SA1515 // Single-line comment must be preceded by blank line #pragma warning restore CA1307 // Specify StringComparison #pragma warning restore CA1309 // Use ordinal stringcomparison }