Use of the Global Namespace Aliases
Answers
Rahul M...
4916
Points
27
Posts
|
It is Global Namespace Alias. The global namespace alias is useful when the member might be hidden by another entity of the same name. In your case, I think, you can remove it if there is no entity with same name in imported namespaces. For more see https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/namespaces/how-to-use-the-global-namespace-alias
Posted On:
26-Oct-2017 23:52
Nice... - hambi 13-Nov-2017 06:38
|
Smith
2890
Points
78
Posts
|
It is useful to disambiguate - for example:
Otherwise, if you use both System.Windows.Forms.Timer and System.Timers.Timer in the same file you'd have to keep giving the full names (since Timer could be confusing).
Posted On:
27-Oct-2017 00:09
|
Ankit t...
112
Points
11
Posts
|
Thanks..
Posted On:
27-Oct-2017 03:47
|
Blog
Active User (0)
No Active User!