dotnet: support optional arguments in methods and constructors #210
Labels
effort/small
Small work item – less than a day of effort
language/dotnet
Related to .NET bindings (C#, F#, ...)
p0
jsii methods/constructors can have optional arguments. The .NET generator should respect those and pass
null
in calls that don't supply them.-- from @mpiroc:
jsii-dotnet-generator
should supply default values for arguments with optional typesjsii-dotnet-generator
ensures thatnull
is a valid value for types markedoptional
in JSII. For value types, this means making them nullable, i.e.int?
. For reference types,null
is already a valid value.When a type like this is used in a parameter list,
jsii-dotnet-generator
should create a default value ofnull
for the parameter. Currently, the user has to explicitly passnull
.The text was updated successfully, but these errors were encountered: