Skip to content

Fix API delegates nullability support #23178

@mandel-macaque

Description

@mandel-macaque

Apple platform

iOS

Framework version

net9.0-*

Affected platform version

.Net 9

Description

During the development of rgen we noticed that the delegate signatures for the completion handlers are incorrect, and that most of them are missing the nullability decoration.

This is important for or users because:

  1. Matches the API definition better.
  2. Helps to avoid null reference exceptions.

For rgen this is important because we are generating code that is more robust and will call GetNonNullableHandle instead of GetHandle if the parameter has not been marked as a nullable type.

List of frameworks to update:

Steps to Reproduce

API should be correct.

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions