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