- Notifications
You must be signed in to change notification settings - Fork5.2k
CollectionsMarshal.GetValueRef(Dictionary)#49388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ghost commentedMar 9, 2021
Tagging subscribers to this area:@eiriktsarpalis Issue DetailsStill needs doc comments and tests Resolves#27062
|
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/CollectionsMarshal.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/CollectionsMarshal.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
stephentoub commentedMar 9, 2021
Are there places outside of Dictionary we should be using the new method, too? |
benaadams commentedMar 9, 2021
For However |
jkotas commentedMar 9, 2021
It also needs to be something reasonably hot to make it worth the trouble. |
benaadams commentedMar 10, 2021
While CoreLib does create dictionaries, it doesn't really do much modifying of them and alas my search-fu isn't good enough to check all the other libs; though I definitely have uses further downstream Looks like a ref enumerator refstructRefEnumerator{(TKeykey,refTValue)Current{get;}boolMoveNext();} would be helpful too, but small steps 😉 |
310ad9b to66feb3cCompareb45aaa5 to8d37543Comparesrc/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/CollectionsMarshal.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
stephentoub commentedMar 10, 2021
Thanks,@benaadams. |
benaadams commentedMar 11, 2021
|
src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
76c7749 to4b9cc40Comparebenaadams commentedMar 17, 2021
Rebased to reset CI |
benaadams commentedMar 17, 2021
🥳 |
Uh oh!
There was an error while loading.Please reload this page.
Implement the api
Contributes to#27062
/cc@layomia