Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Calling Reset()
on HeaderDictionary.Enumerator
does not result in the enumerator being reset.
The issue is caused by the cast shown here which results in the underlying enumerator being copied by value.
Expected Behavior
The enumerator is reset to the initial state.
Steps To Reproduce
https://github.com/CoryCharlton/HeaderDictionary_Enumerator_Reset
Exceptions (if any)
No response
.NET Version
9.0.203
Anything else?
PR that implements proposed fix is here.