Skip to content

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

Open
@vmachacek

Description

@vmachacek

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

.AddConstructor(Accessibility.Public).WithBaseCall(new Dictionary<string, string>()
{
    ["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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions