11-08-2013, 12:18 AM | #1 |
Registered User
Join Date: Oct 2013
Location: Hyderabad
Posts: 20
|
What is namespaces In .NET ?
Namespace is a Keyword used declare a Scope. If you do not declare a namespace, a default namespace will be created. this unnamed namespace some times called Global namespace, this will created every file.
|
11-28-2013, 09:45 PM | #2 |
Registered User
Join Date: Nov 2013
Posts: 158
|
Using system;
Class A { show() { System.Console.WriteLine("Hello World!"); } } |
01-02-2014, 12:08 AM | #3 |
Registered User
Join Date: Nov 2013
Location: Surat
Posts: 971
|
Namespace is a Keyword used declare a Scope
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. , |
02-26-2014, 06:22 AM | #4 | |
Registered User
Join Date: Nov 2013
Posts: 92
|
Quote:
Namespaces are a way of grouping type names and reducing the chance of name collisions. namespace ExampleNamespace { class TestExample { public void ShowMessage() { Console.WriteLine("This is the TestExample namespace!"); } } }
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
|
03-12-2014, 02:18 AM | #5 |
Registered User
Join Date: Mar 2014
Posts: 73
|
Namespace is simply a large collection of classes. If you do not enter any name space it will be global automatically. So all classes are the sub class of namespace
|
03-12-2014, 02:53 AM | #6 |
Registered User
Join Date: Mar 2014
Location: Dubai, United Arab Emirates
Posts: 21
|
Namespace basically declares the scope of that particular keyword for example that particular keyword's property is private, public or if there is no namespace it means the keyword is global and any class can use it.
To the best i know.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
06-05-2015, 06:02 AM | #7 |
Registered User
Join Date: Jun 2015
Location: canada
Posts: 29
|
NameSpace is a logical group of type or we can say that namespace is a container of class, interface, structure etc.It reduces the chance of name collisions.Namespace with all the functionality come under system namespace. It organize large block of code and they are delimited by using the . operator. using directives are used in namespace.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
07-13-2015, 03:13 AM | #8 |
Registered User
Join Date: Jul 2015
Posts: 39
|
Hi,
A namespace is used to organize your code and is collection of classes, interface, structs, enum and delegate. Thanks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
.com vs .net in SEO? | noahwilson | Hosting Discussion | 5 | 09-30-2014 03:57 AM |
how can i get win32 API from .NET Program ? | sansoni1 | ASP | 0 | 10-29-2013 12:55 AM |
What is CLR in .NET Framewok? | chikkiarora | Programming General | 10 | 11-02-2012 02:46 AM |
Migrate .net website to PHP | davikerkrish | PHP / mySQL | 1 | 10-04-2012 10:21 PM |
.net training ahmedabad | pooja10002 | General Discussion | 1 | 05-07-2012 02:37 AM |