Exactly as the title says, I think I was looking at c# code when I saw this a while back, I never took much notice of it, but what does :: Mean in c#. I think I saw something like myVar::Process.Start()
Exactly as the title says, I think I was looking at c# code when
Share
It is the namespace alias qualifier – if you use namespace aliases:
It helps disambiguating when you have types with the same name in the same scope.
For example – if you have several
Legclasses (one for furniture, one for the leg of a journey), and both are in imported namespaces, with the result that when you useLegin your code the compiler can’t tell which one you mean, then if you have a namespace aliases to the namespaces, you can use<alias>::Legto refer to the exact type you mean.There is a default alias
globalfor the global namespace.