Skip to content

Commit f4173b4

Browse files
committed
Let's not forget this shall be Ordinal search
1 parent 3710f1a commit f4173b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/ReflectionUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal static string GetAssemblyPartialName(Assembly assembly)
5454

5555
ReadOnlySpan<char> nameSlice = fullName;
5656
// Skip any escaped commas in the name if present
57-
int escapedComma = fullName.LastIndexOf("\\,");
57+
int escapedComma = fullName.LastIndexOf("\\,", StringComparison.Ordinal);
5858
if (escapedComma != -1)
5959
nameSlice = nameSlice.Slice(escapedComma + 2);
6060

0 commit comments

Comments
 (0)