开发者

How to register a namespace in app.config

开发者 https://www.devze.com 2022-12-29 19:56 出处:网络
How can i register a namespace in app.config 开发者_如何学Cso that it will become globally accessible.No, you can\'t.

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

精彩评论

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