CodeGenHelpers icon indicating copy to clipboard operation
CodeGenHelpers copied to clipboard

Question: is there a better way to handle WithThisCall parameters?

Open stewpend0us opened this issue 10 months ago • 0 comments

I came up with this hack.

.Class
.AddConstructor(Accessibility.Public)
.WithThisCall(new Dictionary<string, string>{{")//hack", $"new MyType()"}})
.Class;

which generates

public ReactiveCompressedImage()//hack new MyType())
            : this(new MyType())

is there a less hacky way to do this?

stewpend0us avatar Jun 05 '25 16:06 stewpend0us