Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/mscorlib/src/System/Enum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private static bool TryParseEnum(Type enumType, String value, bool ignoreCase, r
StringComparison.OrdinalIgnoreCase :
StringComparison.Ordinal;

int valueIndex = 0;
int valueIndex = firstNonWhitespaceIndex;
while (valueIndex <= value.Length) // '=' is to handle invalid case of an ending comma
{
// Find the next separator, if there is one, otherwise the end of the string.
Expand Down