CodeGenHelpers
CodeGenHelpers copied to clipboard
Question: is there a better way to handle WithThisCall parameters?
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?