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

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

using is a directive/keyword which is used to import a namespace. It provides access to refer all the types in that particular namespace.

Example,
using Home.Hall.DiningRoom;


class MyClass
{
static void Main()
{
Furniture Chairs, Tables; // Refering Furniture type from the namespace above.
}
}


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response