Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Equals implementation
  • Loading branch information
maxkoshevoi committed Aug 14, 2021
commit 4be835adf4aa9a77c89f199a642ff586645ff350
Original file line number Diff line number Diff line change
Expand Up @@ -617,15 +617,7 @@ public static bool Equals(StringValues left, StringValues right)
/// </summary>
/// <param name="other">The string array to compare to this instance.</param>
/// <returns><c>true</c> if the value of <paramref name="other"/> is the same as this instance; otherwise, <c>false</c>.</returns>
public bool Equals(string[]? other)
{
if (other == null)
{
throw new ArgumentNullException(nameof(other));
}

return Equals(this, new StringValues(other));
}
public bool Equals(string[]? other) => other != null && Equals(this, new StringValues(other));

/// <inheritdoc cref="Equals(StringValues, string)" />
public static bool operator ==(StringValues left, string? right) => Equals(left, new StringValues(right));
Expand Down