Requires Free Membership to View
When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to provide a unique online resource for developers, architects and development managers tasked with building and maintaining enterprise applications using Visual Basic, C# and the Microsoft .NET platform.
Hannah Smalltree, Editorial DirectorIf you want to import the namespace you can do so by the "using <Namespace>;" statement at the top of your source file. You will find examples of this in any C# source file generated when you insert a class, user control, or form into your project. Simply look to the top of the file to see lines such as "using System;" This allows the compiler to look into the specified namespace to find the Type you are after.
If you do not want to import the namespace by the "using" statement, you can simply refer to the Type using its fully qualified name. An example of this might be System.String. If this was a class you have defined it might appear like this. YourBusiness.YourApplication.YourClass.
If you are interested in reading up on namespaces, then open up the MSDN library or go online and lookup the "using" statement/keyword with C# as your filter. You should find all the reference and more in MSDN.
Cheers!
This was first published in November 2004