I have seen double colons (::) in generated code. I was wondering what its purpose is?
::
It's the namespace alias qualifier operator. Citing from the linked-to MSDN page:
The namespace alias qualifier (::) is used to look up identifiers. It is always positioned between two identifiers, as in this example: global::System.Console.WriteLine("Hello World");
The namespace alias qualifier (::) is used to look up identifiers. It is always positioned between two identifiers, as in this example:
global::System.Console.WriteLine("Hello World");
1.4m articles
1.4m replys
5 comments
57.0k users