How to register namespace in app.config

How can I register a namespace in app.config so that it becomes available worldwide.

+4
source share
2 answers

No, you can’t.

The application configuration file has no role at compile time. And that’s exactly when namespaces are allowed.

I am afraid that it is not possible to make a specific namespace accessible “globally”, i.e. without mentioning it in every file.

+3
source

FWIW VB.NET has this feature! (On the Links tab of the vb project)

+1
source

Source: https://habr.com/ru/post/1309511/


All Articles