dansiegel / dansiegel/CodeGenHelpers

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

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.