PDA

View Full Version : C# - Namespace



Fehm
12-04-2009, 09:27 AM
Hi,
After seeing Caleb's tutorial i've decided im gonna try and learn a bit of C#, and after looking through even more tutorials over the internet, i think ive fallen at the first hurdle..

In one tutorial it talks about 'namespace'
I was wondering whether anyone can help me out what this function actually does?

Thanks :)
Callum

Moved by ReviewDude (Forum Moderator) from 'Coding & Programming'.

wsg14
12-04-2009, 05:59 PM
Google is your friend sir.
http://msdn.microsoft.com/en-us/library/z2kcy19k(VS.80).aspx

Fehm
12-04-2009, 06:43 PM
Google is your friend sir.
http://msdn.microsoft.com/en-us/library/z2kcy19k(VS.80).aspx


I tried, couldnt come up with anything.... and Thanks for the link ill check it out

Dentafrice
12-04-2009, 08:36 PM
Namespace isn't a function, it's a container.. like a class.

The TehUpload app has a namespace: TehUpload, and in that namespace are multiple classes.

Each class has to be named differently, and inside each of those classes.. it has to have unique named functions.

It's basically a container.

Namespace: TehUpload
Classes: Uploading
Functions: upload
Functions: get_data
Classes: Graphics
Functions: get_screen

I couldn't have more then one get_screen in "Graphics", just like I couldn't have more then one Graphics in TehUpload.

You can in multiple namespaces though.

Want to hide these adverts? Register an account for free!