Code Generation (#2734)

I'm having a problem with C# code generation. The software seems to be struggling with "null!" or initializing a non-nullable to null usinging the "!" operator.

Proper Implementation of the code:

public string foo { get; set; } = null!;

SIMs generated code:

public string foo{ get; set; } = = null!;;

As you can see SIM adds an extra equals(=) and an extra semi-colon (;)

Created
8 February 2024 17:49:16
Closed
21 March 2024 11:49:15
Requested by
Caelan
State
Solved
Version
Trail v14.10
OperatingSystem
Windows 11
Solved in
14.30

Dusan Rodina - softwareideas.net 9 February 2024 10:00:53

Hello,

We cannot reproduce this issue. Could you please send us the example project file in which you observe this behavior to softwareideas@softwareideas.net ?

TrackedRequestComment
Your Name:
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]