Question:
What are the Types of Assemblies?
Answer:
Assemblies are of two types 1. Private Assemblies 2. Shared Assemblies Private Assemblies: The assembly is intended only for one application. The files of that assembly must be placed in the same folder as the application or in a sub folder. No other application will be able to make a call to this assembly. The advantage of having a private assembly is that, it makes naming the assembly very easy, since the developer need not worry about name clashes with other assemblies. As long as the assembly has a unique name within the concerned application, there won't be any problems. Shared Assemblies: If the assembly is to be made into a Shared Assembly, then the naming conventions are very strict since it has to be unique across the entire system. The naming conventions should also take care of newer versions of the component being shipped. These are accomplished by giving the assembly a Shared Name. Then the assembly is placed in the global assembly cache, which is a folder in the file system reserved for shared assemblies. Source: CoolInterview.com
.Net Assembly can be classified in four Categories:
(A) With Respect to Program Access. i) Private Assembly- It can be used only in one application. ii) Public/Shared Assembly- It can be used by all applications in the server.
(B) With Respect to Number of Resources. i) Static Assembly- It uses fixed resources. ii) Dynamic Assembly- It supports dynamic creation of resouces or files at runtime programatically.
(C) With Respect to Deployment. i) Satellite Assembly- Easily Deployable. (Visual Studio 2005). ii) Resource-Only Assembly- In Visual Studio 2003.
(D) With Respect to Number of Assemblies. i) Single File Assembly- /Bin/x.dll
ii) Multi File Assembly- /Bin/x.dll y.dll z.dll --- --- ---
Source: CoolInterview.com
Answered by: bajibabu | Date: 4/21/2009
| Contact bajibabu
Assemblies are of two types they are 1.private Assembly and 2.Shared Assembly
In private assembly the application can be used only once and the advantage of this is to make the naming assembly very easy.
In Shared assemblies all the applications are used in the server and this is also called as public assembly. Source: CoolInterview.com
Answered by: V.Naga Sarma | Date: 4/20/2010
| Contact V.Naga Sarma
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|