0

我有一个控制台应用程序客户端,它正在调用另一个程序集上的方法,这个其他程序集需要初始化一些配置信息,我可以将这些配置的部分处理程序保留在程序集本身中吗?并且不向控制台应用程序客户端公开?如果我可以这样做,那我该怎么做呢?

4

1 回答 1

0

If by "not expose" you mean keeping configuration handler classes within the assembly, then sure. You can use ConfigurationManager within the library methods and keep everything internal. But keep in mind that you will need to define xml configuration in console client's app.config, not the library-specific config.

于 2012-01-15T16:57:20.013 回答