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


Top 5 Contributors of the Month
satyapriyanayak

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

what is NAMESPACE in .NET ?

Posted By: RASHMI KUSHWAHA     Posted Date: July 11, 2011    Points:5   Category :.NET Framework
what is NAMESPACE in .NET? use simple terms..

Responses
Author: Ravi Ranjan Kumar          Accepted Answer   
Posted Date: July 11, 2011     Points: 40   

In general, a namespace is a container that provides context for the identifiers (names, or technical terms, or words) it holds, and allows the disambiguation of homonym identifiers residing in different namespaces
In Programming Concept or .Net
The namespace keyword is used to declare a scope. This namespace scope lets you organize code and gives you a way to create globally-unique types.

lets us consider an example

System.Console.WriteLine();


in this ,we noted that System is the namespace(scope) in which the Console class is located. A class in a namespace can be accessed using the dot operator as illustrated in the above statement.
Namespaces are the way C# segregates the .Net library classes into reasonable groupings.
Once a namespace is imported in a program, we can use the element of that namespace without using the namespace are prefix.

To Getting more details
Go there http://msdn.microsoft.com/en-us/library/z2kcy19k%28v=vs.71%29.aspx


Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Narayanan             
Posted Date: July 12, 2011     Points: 20   

Hi,
Grouping Type Names
Contains Namespace and type
Namespace from the .Net Framework Class Library



Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: kamlesh          Accepted Answer   
Posted Date: July 12, 2011     Points: 40   

Generally in java terms a namespace is nothing but a package. Here the namespace is expressed in the form of a package,which should be unique, if two classes have the same name but the package should differ.
Like java.awt.List or java.util.List, but each has there own identity.

Thanks And Regards.
Kamlesh Nikam
Author: RASHMI KUSHWAHA             
Posted Date: July 14, 2011     Points: 20   

NAMESPACE is a collection of logical related class... namespace is parent of class..............

correct me if i m wrong.........





Thanks and Regards,
rashmi kushwaha



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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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