What’s the difference between private and shared assembly? 

1 Answer

Answer :

Answer: Privateassembly is used inside an application only and does not have to be identified by a strong name.

Shared assembly can be used by multiple applications and has to have a strong name.


Related questions

Description : What is a shared assembly? How would you create one?

Last Answer : An assembly is an assembly of which only a single copy is installed per machine. This copy can be shared by multiple applications. To make an assembly a shared assembly, you must first assign it a strong name, and then install it to the global assembly cache.

Description : Do you need to instantiate a class before accessing a Shared (static) member? Why or why not?

Last Answer : Because a Shared (static) member belongs to the type rather than to any instance of the type, you can access the member without first creating an instance of the type.

Description : Where are shared assemblies stored ?

Last Answer : Answer: Global assembly cache.

Description : Where are shared assemblies stored?

Last Answer : The GAC  

Description : What is the difference between a namespace and an assembly name?

Last Answer : A namespace is a logical naming scheme for types in which a simple type name, such as MyType, is preceded with a dot-separated hierarchical name. Such a naming scheme is completely under ... design-time naming convenience, whereas an assembly establishes the name scope for types at run time.

Description : Briefly explain the difference between Public (public), Friend (internal), and Private (private) access levels as they apply to user-defined types and members.

Last Answer : In user-defined types, Public (public) classes can be instantiated by any element of the application. Friend (internal) classes can be instantiated only by members of the same assembly, and Private ( ... the same assembly, and Private (private) members can be accessed only from within the type. 

Description : Whats an assembly ?

Last Answer : Answer: Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is ... implementations. To the runtime, a type does not exist outside the context of an assembly.

Description : Which one of the following tools is used to view the metadata information contained in a .NET assembly? Select Answer:  1. al.exe  2. ilasm.exe  3. vbx.exe  4. csc.exe  5. ildasm.exe

Last Answer :  5. ildasm.exe

Description : Describe how to sign your assembly with a strong name. Why would you want to do this?

Last Answer : To sign your assembly with a strong name, you must have access to a key file or create one with the strong name utility (sn.exe). You then specify the key file in the AssemblyInfo file and ... identity, a strong name is required if you want to install your assembly to the Global Assembly Cache.

Description : How do you specify a custom attribute for the entire assembly (rather than for a class) ?

Last Answer : Answer: Global attributes must appear after any top-level using clauses and before the first type or namespace declarations. An example of this is as follows: using System; [assembly : ... that in an IDE-created project, by convention, these attributes are placed in AssemblyInfo.cs.

Description : Where’s global assembly cache located on the system ?

Last Answer : Answer: Usually C:\winnt\assembly or C:\windows\assembly.

Description : How can you debug failed assembly binds ? 

Last Answer : Answer: Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched.

Description : What is purpose of Assembly Linker or define SDK Tool in .NET Framework?

Last Answer : Answer: In .NET whole the working should be with the helps of DLLs.So all of Visual Studio .Net compilers gernate assemblies or u can say dll.If we want to create an assembly with ... Studio .Net .This multi file can contain modules that are written in diffrenet langauage in one application.

Description : What is a Assembly ?

Last Answer : An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as ... The self-describing nature of assemblies also helps makes zero-impact install and XCOPY deployment feasible. 

Description : What is a satellite assembly?

Last Answer : When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies.

Description : What are the ways to deploy an assembly?

Last Answer : An MSI installer, a CAB archive, and XCOPY command. 

Description : What does the assembly manifest contain? 

Last Answer : Assembly manifest lists all names of public types and resources and their locations in the assembly.

Description : What is an assembly identity?

Last Answer : Assembly identity is name, version number, and optional culture, and optional public key to guarantee uniqueness. 

Description : What is an assembly?

Last Answer : Assemblies contain logical units of code in MSIL, metadata, and usually a manifest. Assemblies can be signed and the can dome in the form of a DLL or EXE. 

Description : What is a satellite assembly?

Last Answer : When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies. 

Description : What are the ways to deploy an assembly?

Last Answer : An MSI installer, a CAB archive, and XCOPY command. 

Description : Mention the assembly name where System namespace lies in C#?

Last Answer : Assembly Name – mscorlib.dll

Description : Are private class-level variables inherited? 

Last Answer : Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.

Description : Where are private assemblies stored? 

Last Answer : Same folder as exe 

Description : Can base constructors can be private?

Last Answer : Yes

Description : Can the members of an interface be private?

Last Answer : No. 

Description : What is private accessibility?

Last Answer : Access is restricted to within the containing class. 

Description : Are private class-level variables inherited? 

Last Answer : Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.

Description : Can you override private virtual methods? 

Last Answer : No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access. 

Description : Are private class-level variables inherited? 

Last Answer : Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are.

Description : Can you override private virtual methods?

Last Answer : No. Private methods are not accessible outside the class.

Description : Can you override private virtual methods?

Last Answer : No, private methods are not accessible outside the class.

Description : Can we override the private virtual method in C#?

Last Answer : No. We can’t override private virtual methods as it is not accessible outside the class.

Description : What’s the difference between the Debug class and Trace class? 

Last Answer : Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.

Description : What’s the difference between // comments, /* */ comments and /// comments?

Last Answer : Single-line comments, multi-line comments, and XML documentation comments.

Description : What’s the difference between an interface and abstract class?

Last Answer : Answer: An abstract class and Interface both have method only but not have body of method.The difference between Abstract class and An Interface is that if u call Ablstract class then u have to call ... type, Parameter type, Parameter Number all must be same . Only body of method can change. 

Description : What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?

Last Answer : The first one performs a deep copy of the array, the second one is shallow. 

Description : What’s the difference between System.String and System.Text.StringBuilder classes?

Last Answer : System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Description : What’s the difference between camel and pascal casing?

Last Answer : PascalCasing, camelCasing 

Description : What’s the difference between the Debug class and Trace class? 

Last Answer : Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.

Description : What’s the difference between // comments, /* */ comments and /// comments?

Last Answer : Single-line comments, multi-line comments, and XML documentation comments.

Description : What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?

Last Answer : The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a ... create a new instance of each element's object, resulting in a different, yet identacle object.

Description : What’s the difference between System.String and System.Text.StringBuilder classes?

Last Answer : System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Description : What’s the difference between System.String and System.StringBuilder classes?

Last Answer : System.String is immutable, System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Description : What si the difference between interface and abstractclass Select Answer:  1. interface contain only methods  2. we can't declare a variable for interface  3. interface contain only events  4. None  5. All

Last Answer : Ans : 2 The only Difference between Interface and Abstract class is we can declare a variable in abstract class but we can't declare in variable interface

Description : Explain the difference between Globalization and Localization.

Last Answer : Globalization refers to the application of culture-specific format to existing data. Localization refers to providing new culture-specific resources and retrieving the appropriate resources based on the culture setting. 

Description : What is the difference between a Struct and a Class? 

Last Answer : Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval. Another difference is that structs cannot inherit.

Description : In terms of constructors, what is the difference between: public MyDerived() : base() an public MyDerived() in a child class?

Last Answer : Nothing

Description : What is the difference between the new operator and modifier?

Last Answer : The new operator creates an instance of a class whereas the new modifier is used to declare a method with the same name as a method in one of the parent classes.

Description : What is the difference between a Struct and a Class?

Last Answer : Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval. Another difference is that structs cannot inherit.