Skip to content

Commit

Permalink
Fix Contains extension method (#336)
Browse files Browse the repository at this point in the history
Swapped string values
  • Loading branch information
mciancia8 authored Mar 8, 2022
1 parent 8ba9b23 commit 62e940b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.VisualStudio.SlnGen/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal static partial class ExtensionMethods
/// <returns>true if the value parameter occurs within this string, or if value is the empty string (""); otherwise, false.</returns>
public static bool Contains(this string str, string value, StringComparison comparisonType)
{
return value.IndexOf(str, comparisonType) >= 0;
return str.IndexOf(value, comparisonType) >= 0;
}

/// <summary>
Expand Down

0 comments on commit 62e940b

Please sign in to comment.