Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > ASP

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 11-08-2013, 12:18 AM   #1
sansoni1
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.
sansoni1 is offline   Reply With Quote

Old 11-28-2013, 09:45 PM   #2
shaadisankalp01
Registered User
 
Join Date: Nov 2013
Posts: 158
Using system;
Class A
{
show()
{
System.Console.WriteLine("Hello World!");
}
}
shaadisankalp01 is offline   Reply With Quote
Old 01-02-2014, 12:08 AM   #3
Die_heart
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.
,
Die_heart is offline   Reply With Quote
Old 02-26-2014, 06:22 AM   #4
alligatortek001
Registered User
 
Join Date: Nov 2013
Posts: 92
Quote:
Originally Posted by sansoni1 View Post
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.
Namespace is logical division of class, structure and interface OR way to organize your .NET code is through the use of namespaces
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.
alligatortek001 is offline   Reply With Quote
Old 03-12-2014, 02:18 AM   #5
stingoperationp
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
stingoperationp is offline   Reply With Quote
Old 03-12-2014, 02:53 AM   #6
kiwistech
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.
kiwistech is offline   Reply With Quote
Old 06-05-2015, 06:02 AM   #7
BenjaminMayer
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.
BenjaminMayer is offline   Reply With Quote
Old 07-13-2015, 03:13 AM   #8
zinist
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
zinist is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 05:43 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.