Wednesday 26 June 2013

Assembly And NameSpace

(A) What are different types of Assembly?
There are two types of assembly Private and Public assembly.A private assembly is normally used by a single application, and is stored in the application's directory, or a sub-directory beneath. A shared assembly is normally stored in the global assembly cache, which is a repository of assemblies maintained by the .NET runtime. Shared assemblies are usually libraries of code which many applications will find useful, e.g. Crystal report classes which will be used by all application for Reports..

(B) What is NameSpace?
Namespace has two basic functionality :-
√ NameSpace Logically group types.Example System.Web.UI logically groups our UI related features.
√ In Object Oriented world may times its possible that programmers will use the same class name.By qualifying NameSpace with classname this collision can be removed.

(B) What is Difference between NameSpace and Assembly?
Following are the differences between namespace and assembly :
√ Assembly is physical grouping of logical units. Namespace logically groups classes.
√ Namespace can span multiple assembly.


EmoticonEmoticon