C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Namespace .Net


Posted Date: 06 Jun 2008    Resource Type: Definitions    Category: General

Posted By: shakti singh tanwar       Member Level: Diamond
Rating:     Points: 5



Namespace provides you a logical container for classes to avoid name collisions and ambiguity.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.
Following types can be declared inside a namespace:-
another namespace
class
interface
struct
enum
delegate






Responses

Author: Nanak Deep    18 Jun 2008Member Level: Bronze   Points : 2
very useful,, please also post information regarding

differences between

namespace / dll
namespace / exe
namespace / assembly
assembly / project
assebmly /project

i know them but are clashing with each other or other terms
clear difference


thank u sir


Author: Bunty    25 Jun 2008Member Level: Diamond   Points : 2
Hi,

Nice information on Namespace.

You clearly mention what we can write in namespace.

Keep posting.

Thanks and Regards
S.S.Bajoria


Author: Ashish verma    26 Jun 2008Member Level: Bronze   Points : 2
Its a nice piece of information about Namespace.
Please also post the code snippet of deligate.
Keep on posting more information regarding
ADO.net.
Thanks.


Author: Sriram    05 Oct 2008Member Level: Gold   Points : 2
NameSpace:
Namespace is the Way of Organizing classes,Objects,Methods ,Properties ,Indexes ,to Avoid Naming Collisions to Lenthy NameSpace.


I have Two classes With same Name like Sample and Sample it cannot compile and run two classes with same that time we go for name space Concept.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Namespace
{
class Sample
{
public int a;
}

namespace Picture
{
class Sample
{
public int b;
}
}
class Program
{
static void Main(string[] args)
{

Namespace.Sample k = new Namespace.Sample ();
Picture.Sample p = new Picture.Sample();
k.a =10;
p.b = 20;

Console .WriteLine ("This is Sample Values {0},{1}",k.a ,p.b );
Console.ReadLine ();
}
}
}







Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: XMLHttpRequest
Previous Resource: PDFsharp
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

conference calls

Contact Us    Privacy Policy    Terms Of Use