开发者

alias a namespace globaly for the entire project [duplicate]

This question already has answers here: Does C# Support Project-Wide Default Namespace Imports Like VB.NET? (5 answers) Closed 9 years ago.

is it possible to create a new alias for a given namespace for the entire project?

that is i dont want to write a "using DO = App.Do.App33;" in each cs file of the project.

but i want to do开发者_运维百科 it one time in some configuration or maybe in some cs file.

and then simply DO will refer to App.Do.App33 in the entire Application.


There's no way to do that for the entire project. You're limited to the file level.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜