C# 将构造函数参数传递给Unity容器注册
我的注册码为xamarin.forms,带有unity/prism:C# 将构造函数参数传递给Unity容器注册,c#,xamarin,unity-container,C#,Xamarin,Unity Container,我的注册码为xamarin.forms,带有unity/prism: containerRegistry.RegisterSingleton<IRepo, Repo>(); 如何注册,以及如何定义参数名?这是否回答了您的问题?不,不要在Xamarin/Prism中工作 public Repo(string name)
containerRegistry.RegisterSingleton<IRepo, Repo>();
如何注册,以及如何定义参数名?这是否回答了您的问题?不,不要在Xamarin/Prism中工作
public Repo(string name)