2008-10-10 28 views

回答

1

爲什麼不把這個調用作爲主函數中的第一條指令?

否則,你可以定義另一個入口點計劃,並打電話給你的主從那裏,但它的basicaly相同

2

不知道你想要什麼來完成...但是,我不知道的呢您可以在Main()之前有一個控制檯應用程序運行任何其他方法。爲什麼不做這樣的事情:

static void Main(string[] args) 
{ 
    //read your app.config variable 
    callAlternate = GetConfigSettings(); 
    if(callAlternate) 
     AltMain(); 

    ///...rest of Main() 
} 
相關問題