0
這是怎樣的方式與autofac做溫莎城堡 - 註冊所有的Windows窗體
var assembly = Assembly.GetExecutingAssembly();
builder.RegisterAssemblyTypes(assembly)
.Where(type => type.IsSubclassOf(typeof(Form)));
或
var assembly = Assembly.GetExecutingAssembly();
builder.RegisterAssemblyTypes(assembly)
.AssignableTo<Form>();
如何與溫莎城堡做到這一點?