We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53e5e10 commit bc5f21dCopy full SHA for bc5f21d
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/EnumConverter.cs
@@ -676,7 +676,7 @@ private static EnumFieldInfo[] TopologicalSortEnumFields(EnumFieldInfo[] enumFie
676
return enumFields;
677
}
678
679
- var indices = new Tuple<int, int>[enumFields.Length];
+ var indices = new (int negativePopCount, int index)[enumFields.Length];
680
for (int i = 0; i < enumFields.Length; i++)
681
{
682
// we want values with more bits set to come first so negate the pop count
0 commit comments