1.

What is the difference between a Namespace & an Assembly?

Answer»

Namespace

  • It is a LOGICAL grouping of classes that belongs to the same functionality.
  • Example: System.Data & System. Web are namespaces.

Assembly

  • Act as the BUILDING BLOCK of .NET Framework applications.
  • It is a group of types & resources which work together to create a logical unit of functionality.
  • An assembly is a precompiled CODE that can be executed by the .NET environment.
  • It may contain one or more than one Namespaces.
  • Any .NET program can consists of one or more assemblies.
  • Example: System.Web.dll and System.Data.dll are assemblies.
  • In the other way we can say an assembly is a project. Each project within a same solution, GETS compiled into its own individual assembly.
  • An assembly can have multiple namespaces.


Discussion

No Comment Found