What do you mean by 'global' keyword in C#?

 Posted by Goud.Kv on 9/29/2014 | Category: C# Interview questions | Views: 671 | Points: 40
Answer:

global is the C#'s contextual keyword which refers to the global namespace. It is used to solve the problems that we might get while redefining types.

If it is places before '::' operator, then it is referring to the global namespace which is the C#'s default namespace.

Example,
class MyClass : global::MySec { }


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response