Understanding Namespaces and Adding References to Assemblies - 17
- Posted: Nov 21, 2011 at 9:27 AM
- 17,481 Views
Right click “Save as…”
We've avoided any talk about Namespaces, however they serve an important role in the .NET Framework Class Library as well as in our custom class libraries we may choose to create. We explain how Namespaces allow us to disambiguate classes that may share the same name. Additionally, we explain how the .NET Framework Class Library is so large that including all it's classes in every application you write is a waste of system resources. To mitigate that need, the FCL is split into multiple assemblies (.dll files) that must be included (or rather, referenced) by your project to be utilized in your applications. We discuss how certain project templates include those references to the typical assemblies required by a given type of application (such as a web application versus a Windows form application). We demonstrate this by referencing a custom assembly I created to parse the HTML from a web page for display in a Console window.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?