Types of Namespace in C#1 min read

The namespaces are used in C# that contains collection of classes. There four types of namespaces in C#.

  • Directive
  • Station
  • Alias
  • Nested

Directive Namespace:

The directive namespace that is from link library and direct as link.

Eg:

Station Namespace:

The namespace that created automatically for project.

Eg: Console app create.

Alias Namespace:

The user defined name is created.

Eg:

Nested Namespace:

This nested namespace hasa  namespace within another namespace.

Eg:

Author Profile

Thiruppathi Rengasamy
I 'm a .Net Developer & Blogger. And also I'm working as senior software engineer in Microsoft Technologies for 5+ Years.I would like to spend my precious time in writing articles, research in .Net technologies and to learn new technologies.