Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a7a7e18

Browse files
change struct layout
1 parent 731172c commit a7a7e18

File tree

1 file changed

+1
-1
lines changed
  • src/System.Private.CoreLib/shared/System/Collections/Generic

1 file changed

+1
-1
lines changed

src/System.Private.CoreLib/shared/System/Collections/Generic/Dictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>, IDictionary,
3737
{
3838
private struct Entry
3939
{
40-
public uint hashCode;
4140
// 0-based index of next entry in chain: -1 means end of chain
4241
// also encodes whether this entry _itself_ is part of the free list by changing sign and subtracting 3,
4342
// so -2 means end of free list, -3 means index 0 but on free list, -4 means index 1 but on free list, etc.
4443
public int next;
44+
public uint hashCode;
4545
public TKey key; // Key of entry
4646
public TValue value; // Value of entry
4747
}

0 commit comments

Comments
 (0)