dansiegel / dansiegel/CodeGenHelpers

CodeWriter Invoke methode

Open
#58 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
107
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Currently when we want to Invoke something in a method body we have to use AppendLine:

```
methodBuilder.WithBody((x) =>
{
x.AppendLine($"await Test(argument1, argument2));
});
```
Idea would be to create an "InvocationBuilder" which we could use like this:

`x.Invoke(useAwait, methodname, params, prefix, suffix);`

When interested i would volunteer to create a PR.

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.