dansiegel / dansiegel/CodeGenHelpers
Question: is there a better way to handle WithThisCall parameters?
Open
- Dominant language
- C#
- Stars
- 107
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
I came up with this hack.
```c#
.Class
.AddConstructor(Accessibility.Public)
.WithThisCall(new Dictionary{{")//hack", $"new MyType()"}})
.Class;
```
which generates
```c#
public ReactiveCompressedImage()//hack new MyType())
: this(new MyType())
```
is there a less hacky way to do this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.