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)
精彩评论