Skip to content

Commit

Permalink
Use ToUpperInvariant
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Nov 1, 2023
1 parent a94be0a commit 86a648b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static string GetParseMethodName(ParsableFromStringSpec type)
Debug.Assert(displayString.Length > 0);
if (char.IsLower(displayString[0]))
{
displayString = char.ToUpper(displayString[0]) + displayString.Substring(1);
displayString = char.ToUpperInvariant(displayString[0]) + displayString.Substring(1);
}

if (displayString.Contains("."))
Expand Down

0 comments on commit 86a648b

Please sign in to comment.