如何在使用IoC容器時處理基本類型?原始類型和IoC容器
I.e.鑑於你有:
class Pinger {
private int timeout;
private string targetMachine;
public Pinger(int timeout, string targetMachine) {
this.timeout = timeout;
this.targetMachine = targetMachine;
}
public void CheckPing() {
...
}
}
你將如何獲得int和字符串構造函數參數?
好問題! – Stimul8d 2010-09-16 10:26:41