Fixed issues when converting a boolean constant to c#. (Previously outputted as "True")
Improved converting constants with modern c# switch expression
Added a library test for (1=1) = true, which should generate the correct casing for true
Added a type extension to check whether a boxed object is null or default. Added unit tests for these.
Some changes:
To enhance readability in the output c#, all places where null or default was outputted, now default({type}) is outputted. This enhances readability, especially when passing many default values as optional parameters to a method - the type being passed becomes more visible
Fix for #483
Fixed issues when converting a boolean constant to c#. (Previously outputted as "True") Improved converting constants with modern c# switch expression Added a library test for (1=1) = true, which should generate the correct casing for
true
Added a type extension to check whether a boxed object is null or default. Added unit tests for these.Some changes:
null
ordefault
was outputted, nowdefault({type})
is outputted. This enhances readability, especially when passing many default values as optional parameters to a method - the type being passed becomes more visiblenull
object will be outputted asnull