What is namespace in C# Interview Questions?
Then, what is a namespace in C#?
Namespaces are used to provide a "named space" in which your application resides. They're used especially to provide the C# compiler a context for all the named information in your program, such as variable names. Without namespaces, for example, you wouldn't be able to make a class named Console, as .
Besides, what are Generics in C# Interview Questions?
NET Generics interview questions: - Explain Generics and concept of Generic Collection in . NET? Generics help to separate logic and data type to increase reusability. In other words you can create a class whose data type can be defined on run time.
There is no need to have a namespace. However developer studio expects you to be using a name space. For example, when you choose to add a class to a project developer studio will: Create a file for the class.