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

Commit 9edace0

Browse files
Wraith2stephentoub
authored andcommitted
Remove version increment from Dictionary<K,V>.Remove overloads (#18854)
* remove version increment from Remove overloads * add temporary test exclusions * fixup test exclusion names * modify test exclusions Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
1 parent c3e7ffa commit 9edace0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,6 @@ public bool Remove(TKey key)
796796
}
797797
_freeList = i;
798798
_freeCount++;
799-
_version++;
800799
return true;
801800
}
802801

@@ -865,7 +864,6 @@ public bool Remove(TKey key, out TValue value)
865864
}
866865
_freeList = i;
867866
_freeCount++;
868-
_version++;
869867
return true;
870868
}
871869

0 commit comments

Comments
 (0)