摘要:
1 1 class Test 2 { 3 4 private ITeacher _teacher; 5 private IStudent _student; 6 public Test(ITeacher tea, IStudent stu) 7 { 8 _teacher = tea; 9 _stud 阅读全文
摘要:
应用中同时使用到这两种注册方式,以下是自己的理解 RegisterInstance注册单例模式 1 _container.RegisterInstance<INavigationService>(NavigationService); 2 _container.RegisterInstance<IS 阅读全文