Thread: namespace
View Single Post
  #1 (permalink)  
Old December 19th, 2003, 05:39 AM
Ibn_Aziz Ibn_Aziz is offline
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default namespace

Hi...

I do not understand what the keyword 'namespace' is used for. For example...

// csharp program
namespace Timer
{
     class .....
     ....
}

I am infact used to packages in Java..... to be able to create a package..... it must be added to the first line of the code for example............

// Java program
package newPackage;

class ...
....

Is it a similar concept..... if not how do we declare namespaces (packages?) in C#...........

thanks,
Ibn_Aziz
Reply With Quote