Namespaces and Assemblies

Downloads
22010.zip

ASP.NET uses a couple of new terms that are important to understanding the main article: namespaces and assemblies. Namespaces are a scoping mechanism that acts as a container for classes and child namespaces to prevent name conflicts within classes and to organize classes and namespaces hierarchically. You can use one or more namespace names with a class name to provide a fully qualified class name. For example, the fully qualified class name for the Visual Basic.NET (VB.NET) class that the code in Listing A creates is MyNamespace.MyClass. You can nest namespaces simply by declaring a child namespace within the parent namespace.

Assemblies are the .NET equivalent of DLLs—in fact, they carry the .dll extension, just as COM and Win32 DLLs do. Assemblies are containers for the code that the .NET Common Language Runtime (CLR) manages. Like DLLs in COM, assemblies are the unit of deployment in .NET development. Because they carry within them a manifest describing their own identity, version, properties, methods, and dependencies, assemblies don't rely on the registry to give other programs permission to locate and use them. Therefore, you can deploy assemblies by simply copying them to the desired location, which considerably simplifies deployment.

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottOur Experts will show you:
• Common SQL Server
Problems
• Best Practices for T-SQL
• SQL Server Integration
Services
• Database Development

Come See Michael Otey & Tim Ford in Person!

Early Registration Now Open

From the Blogs
May 21, 2013
blog

A Common Misconception about MAXDOP

Out of the box, SQL Server is (and has been) able to take advantage of multiple processors/cores without any effort on behalf of administrators....More
May 9, 2013
blog

My ISO 8601-Compliant Signature 2

My family recently just "officially" announced that we're in the process of adopting a child from South Africa. We're quite excited, of course, but there's a ton of paperwork to do—along with the need for gobs of signatures....More
May 8, 2013
blog

Use SSIS for ETL from Hadoop

In this blog post, Mark Kromer walks you through using SSIS as a way to use ETL techniques using Microsoft's Hadoop on Windows (HDInsight) as a source using Hive connectors...More
SQL Server Pro Forums

Get answers to questions, share tips, and engage with the SQL Server community in our Forums.