(おかげで答えをみんな、here is my refactored example、単一責任の原則について順番に別のStackOverflowの質問。) のC#にPHPから来て、この構文は威圧された: container.RegisterType<Customer>("customer1");
私が実現するまで container.RegisterType(typeof(Customer),
class Program
{
static void Main(string[] args)
{
HomeFurniture homeFur = new HomeFurniture();
Check<HomeFurniture,Furniture>(homeFur);
OfficeFurniture officeFur = new Off