System namespace.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
jeffo said:
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
 
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.
 
CT said:
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
 
Back
Top