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
Not Closed
Requested by
Caelan
State
New
Version
Trail v14.10
OperatingSystem
Windows 11
Solved in
Unsolved

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]