In my work I have come across syntax like global:: (C#) or G:Loading($value) in Php, what do they mean?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In C#
::is the namespace alias qualifier operator, andglobalindicates the global namespace. It is necessary if you have overlapping classes and namespaces.For example, if you have class
Foo.BarandBaz.Foo.Barthen the referenceFoo.Barmay be an ambiguous reference asFoo.Barexists in both the global namespace and theBaznamespace. However, by sayingglobal::Foo.Baryou explicitly scope the reference to the global namespace and thus it is no longer ambiguous.More info here.