You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix setting or getting pointer fields with reflection (mono#20891)
Setting a pointer via reflection incorrectly added an extra layer of
indirection, and getting a pointer via reflection incorrectly
dereferenced the value once.
As a result, setting and then getting only via reflection worked
correctly, but doing either step by directly accessing the field and the
other via reflection was broken.
Also adjusts `FieldInfoTest` to test this, for both static and instance
fields (the set path especially is different for those.)
Fixesmono#20872
This change is released under the MIT license.
0 commit comments