dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

[XC] fix compiled bindings containing arrays #25949

Closed StephaneDelcroix closed 1 day ago

StephaneDelcroix commented 2 days ago

Description of Change

don't get the property on the array type but on the element type

Issues Fixed

StephaneDelcroix commented 1 day ago

With regards to the fix, is the first one fixing the issue, but the second chunk just stopping the crash even if we didn't fix it so we would rather have code that does nothing/something instead of crashing?

both are needed. the reported exception was a NRE, and the code should go through that null ref to end up on the actual fix. This is all strange, as this used to work, but the capability was somehow broken at some point, and we didn't had test for that part