Closed canton7 closed 5 months ago
It looks like the same issues applies to LoadIconMetric
as well
Thanks for the feedback. This is a shortcoming of the metadata, which does not annotate these parameters as optional. I'll move this issue to the metadata repo so it can be corrected.
Actual behavior
The generated code for
LoadIconWithScaleDown
is:However, the documentation states that the
hinst
parameter can be null:Expected behavior
The generated
LoadIconWithScaleDown
allowshinst
to be null.Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):None.
Any of your own code that should be shared?
None
Context
LangVersion
(if explicitly set by project): 10