xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.48k stars 514 forks source link

[generator] Add support for nullable annotations in api definitions #16860

Open rolfbjarne opened 2 years ago

rolfbjarne commented 2 years ago

Currently the generator doesn't support nullable annotations (?) in api definitions, if something is nullable, it has to be annotated with the [NullAllowed] attribute.

We should add support to (and potentially switch our code to use) nullable annotations instead.

GalaxiaGuy commented 2 years ago

Would that include support for the many NRT related attributes, so issues like this can be fixed? https://github.com/xamarin/xamarin-macios/issues/13416

rolfbjarne commented 2 years ago

Yes, we could look at that too.

rolfbjarne commented 1 month ago

This might be mostly fixed with https://github.com/xamarin/xamarin-macios/commit/06798764a4558ab791a6c6f06fe2edb1168f4f31.