AppDomain.CurrentDomain.BaseDirectory的疑惑

一直认为AppDomain.CurrentDomain.BaseDirectory.ToString()的结果类似于:D:\C\WpfApplication2\ConsoleApp\bin\Debug\

不过今天遇到一个例外:在wcf服务里,AppDomain.CurrentDomain.BaseDirectory.ToString()的结果类似于:D:\C\WpfApplication2\ConsoleApp\bin\Debug

最后少了\

 

who can tell me what happened?

posted @ 2011-12-15 19:36  超仔  阅读(8480)  评论(2编辑  收藏  举报