c4sharp icon indicating copy to clipboard operation
c4sharp copied to clipboard

Fix border style value being set incorrectly

Open JG0n opened this issue 4 months ago • 1 comments

In C#, the handling of is not null differs between record and record struct. Specifically, borderStyle.Value returns a non-nullable instance of BorderStyle, which results in the string representation being $borderStyle=BorderStyle { Value = SolidLine() }. To fix this it is necessary to call .Value again or change BorderStyle to be a record

JG0n avatar Oct 21 '25 11:10 JG0n