C# Namespace

tutorial and example
tutorial and example

C# Provides Concept of namespacing to organize your classes in a good manner. It makes the application easy to handle. It is like packaging of java.

The System is a namespace which is used in merely every Console application. It provides methods for writing and reading from console.

We can use ‘using’ keyword to avoid the use of fully qualified name to use a particular method present in a specific namespace.

Let’s see an example of C# Namespace.

C# Namespace Example: using fully qualified name

Output

C# Namespace Example: using keyword

Output