2012-10-16 26 views

回答

0

我發現:

IMyClass myClass= Caliburn.Micro.IoC.Get<IMyClass >(); 

但你也知道,你不應該這樣做,並使用構造函數注入或財產注射代替。但是,測試IoC是否可以檢測並解決實例是一件好事。