.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

What is the syntax to declare a namespace in .NET?

Posted By: Shiva Pandian     Posted Date: October 16, 2013    Points:5   Category :.NET Framework
In .NET, the namespace keyword is used to declare a namespace in the code.

The syntax for declaring a namespace in C# is:
namespace UserNameSpace;

The syntax for declaring a namespace in VB is:
Namespace UserNameSpace

Author: volvo             
Posted Date: November 09, 2013     Points: 20   

A namespace definition begins with the keyword namespace followed by the namespace name as follows:

using System;
using X;

Author: Akhil Raj       [Moderator]      
Posted Date: December 16, 2013     Points: 20   

Is this a question or interview question and answer. Sorry can't understand

Author: Ashutosh Jha             
Posted Date: January 07, 2014     Points: 20   

In the question itself answer is given. Please post this in interview section.

Ashutosh Jha


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend