开发者

How to register a namespace in app.config

How can i register a namespace in app.config 开发者_如何学Cso that it will become globally accessible.


No, you can't.

Application configuration file does not have any role during compile time. And that is exactly when namespaces are resolved.

I'm afraid there is no way to make a certain namespace accessible "globally" - i.e. without mentioning it in every file.


FWIW VB.NET has this feature! (On references tab of a vb project)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜