473,372 Members | 836 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

System namespace.

Hello everyone
I'm looking at an example in the MSDN library and it says that this code requires a reference to the system namesppace. What does this mean?
Thanks in advance.
Nov 20 '05 #1
6 1399
CT
You should try and open a project in VS .NET, if you have it installed. That
way you can see for your self. Anyway, it means that the code relies one or
more classes/types "located" in the System namespace. A namespace is a
logical grouping of classes and types.

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"jeffo" <an*******@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.com...
Hello everyone,
I'm looking at an example in the MSDN library and it says that this code
requires a reference to the system namesppace. What does this mean?
Thanks in advance.

Nov 20 '05 #2
"jeffo" <an*******@discussions.microsoft.com> schrieb
Hello everyone,
I'm looking at an example in the MSDN library and it says that this
code requires a reference to the system namesppace. What does this
mean? Thanks in advance.


I don't know what "referencing" a namespace means exactly. A namespace is a
method of structuring an assembly (a dll/exe). You can set a reference to an
assembly and you can refer to a namespace or use a namespace's name to
qualify a name in the namespace. To set a reference to an assembly,
right-click on "references" in the solution explorer. Which assembly depends
on the class you need. At the bottom of the documentation of the class, the
dll file to be referenced is listed.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
CT
Armin,

There's not a one to one relationship between namespaces and assemblies. A
namespace is not used to structure an assembly; an assembly is a unit of
deployment containing one or more namespaces, whereas a namespace is a
logical grouping that can span several assemblies.
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
"jeffo" <an*******@discussions.microsoft.com> schrieb
Hello everyone,
I'm looking at an example in the MSDN library and it says that this
code requires a reference to the system namesppace. What does this
mean? Thanks in advance.


I don't know what "referencing" a namespace means exactly. A namespace is
a
method of structuring an assembly (a dll/exe). You can set a reference to
an
assembly and you can refer to a namespace or use a namespace's name to
qualify a name in the namespace. To set a reference to an assembly,
right-click on "references" in the solution explorer. Which assembly
depends
on the class you need. At the bottom of the documentation of the class,
the
dll file to be referenced is listed.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
"CT" <ca******@spammersgoawaydotnetservices.biz> schrieb
Armin,

There's not a one to one relationship between namespaces and
assemblies. A namespace is not used to structure an assembly; an
assembly is a unit of deployment containing one or more namespaces,
whereas a namespace is a logical grouping that can span several
assemblies. --


I know. That's why I wrote that the assembly to be referenced depends on the
class to be used, not on the namespace.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
CT
Heck, as long as we can agree...<g> Sorry, if I misunderstood your writing
:-)

--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
"CT" <ca******@spammersgoawaydotnetservices.biz> schrieb
Armin,

There's not a one to one relationship between namespaces and
assemblies. A namespace is not used to structure an assembly; an
assembly is a unit of deployment containing one or more namespaces,
whereas a namespace is a logical grouping that can span several
assemblies. --


I know. That's why I wrote that the assembly to be referenced depends on
the
class to be used, not on the namespace.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
"CT" <ca******@spammersgoawaydotnetservices.biz> schrieb
Heck, as long as we can agree...<g> Sorry, if I misunderstood your
writing :-)


No problem, I was not clear enough. :-)

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: audipen | last post by:
I have a problem with System.Type.GetType method. If you try out the following code in C# console app .. System.Type t = System.Type.GetType("System.DateTime"); System.Type t1 =...
1
by: Tom Welch | last post by:
You can really mess up ASP.NET easily. 1. Create a new ASP.NET project. 2. Create a new folder on the web named System Now all objects in the System namespace are invalid because the compiler...
2
by: John Chrisman | last post by:
I get the above error message as well as a complaint about the RunInstallerAttribute not being found when compiling the following code. This couldn't be any simpler and I see examples on the web...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
0
by: Jim Duffie | last post by:
Hi, I am trying to build a simple websire using the above in Visual Web Developer. When finished I have build the website and it works fine locally but when I FTP it to the server I am getting a...
0
by: DC | last post by:
Why would this code give me the error "Could not load type System.Web.UI.WebControls.AccessDataSource from assembly System.Web, Version=1.0.5000.0" at line 16... <form id="form1"...
0
by: nicomp | last post by:
I created a Web Service: I imported System.Data.SqlClient so I could access SQL server tables programmatically. The web service builds and deploys with no problems. When I try to add the...
2
by: AnalogKid17 | last post by:
Keywords: ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a WinXP Box I've betting the following for days... it's driving me insane: Server Error in '/' Application. ...
9
by: Arpan | last post by:
If I am not wrong, System.IO is one of the seven namespaces that get imported in all ASP.NET page automatically but in the following code: <%@ Import Namespace="System.IO" %> <script...
0
by: Pantokrator | last post by:
Hi! Could you please tell me what am I doing wrong here.... I've got a simple form called Form1 and all I want to do is to pass the pointer to my other class called CCueMakerEngine. Here's what...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.