dansiegel / dansiegel/CodeGenHelpers

WithBaseCall will ommit second parameter with same type due to Dictionary usage

Open
#53 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

I'm not sure if I'm doing something crazy but I have this code

```
.AddConstructor(Accessibility.Public).WithBaseCall(new Dictionary()
{
["IPage"] = "page",
["string"] = "absolutePath",
["string"] = "elementPath",
})
```
which will result in
```
public FooBar(IPage page, string elementPath)
: base(page, elementPath)
{
Page = page;
}
```

because Dictionary is used the third param will overwrite the second. How can I add two params of same type?

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.