In Visual Studio in your C# project expand References folder. Then look at the properties of any reference. You’ll see there Aliases property. In project the property has value “global”.
Can someone tell me what this property for and how can I use it?
Thanks.
This is a guess.
But it is same as this piece of code.
The idea is to avoid namespace name conflict.
“global” is used to separate your assembly having similar namespace from that of the framework.
Assume that your library also has a Console class & your CS file has a reference to your library and mscorlib.dll. And, if you would like to use .net framework Console class, you can write
global::System.Console.WriteLine("hello");You can also do the following, in such a case.
Guys, correct me if I have misunderstood the question.