Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

10. The Class Library, Part 1 > Creating Namespaces

Creating Namespaces

Now that you’ve seen how to use namespaces, how do you create them? By using the Namespace statement, of course:

image

image

Changing the default namespace affects new items, but it doesn’t change the namespace that Visual Studio creates for the items (like MainWindow) that it adds when you first create the project. You’ll have to change those manually.



Take a Break

image

There’s more to be learned about namespaces (there’s always more to be learned about everything), but that’s enough to see you through the vast majority of your programming projects. Why don’t you take a break before completing the Review and we move on to finding our way around the FCL?



Review

image

Are the following statements true or false?

Namespaces define the capabilities of a type.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint