What do you mean by namespace keyword in C# programming language?

 Posted by Goud.Kv on 9/1/2014 | Category: C# Interview questions | Views: 1235 | Points: 40

In order to declare a set of objects, namespace is used. namespace is a domain for the type names.
namespace is used to organize the elements which creates unique types by avoiding conflicts.
namespace Home.Hall.Television 

class Channel1 { }
class Channel2 { }

namespaces doesn't depends on assembly type and also they do not have any impact on the member accessibility such as public, private etc.

Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response