-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Very easy repro:
var builder = CodeBuilder.Create("MyApp")
.AddClass("Test")
.MakePublicClass()
.SetBaseClass("MyBaseType")
.AddConstructor(Accessibility.Public)
.AddParameter("string", "thing")
.WithBaseCall(new Dictionary<string, string>
{
["thing"] = "thing"
})
.Class;
string code = builder.Build();This will result in the following code:
namespace MyApp
{
public partial class Test : MyBaseType
{
public Test(string thing) : base(string)
{
}
}
}So basically instead of using the parameter name, it will use the parameter's type.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working