What is GAC? What are Strong and Weak Types?

Global Assembly cache.

Showing Answers 1 - 4 of 4 Answers

Ranjit

  • Oct 25th, 2005
 

Global Assembly Cache  

Each computer where the common language runtime is installed has a machine-wide code cache called the global assembly cache. The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.

You should share assemblies by installing them into the global assembly cache only when you need to. As a general guideline, keep assembly dependencies private, and locate assemblies in the application directory unless sharing an assembly is explicitly required. In addition, it is not necessary to install assemblies into the global assembly cache to make them accessible to COM interop or unmanaged code.

  Was this answer useful?  Yes

Ranjit

  • Oct 25th, 2005
 

In a strongly typed language, all variables have a type that must be declared. In addition, the compiler verifies the type consistency of expressions (and expressions are always of a type defined by the C# language, or are user-defined types).

  Was this answer useful?  Yes

Ranjit

  • Oct 25th, 2005
 

As a practical matter, working in a strongly typed language means that you need to need to be very clear about the type of the information that will be stored in a variable. Strong typing enforces programming discipline and clarity about the contents of variables. It also prevents possible program errors that can occur in weakly typed environments when the compiler finds the wrong kind of value in a type. Another way of thinking of this is that weak typing allows a programmer to be lazy?in a possibly dubious type conversion, the compiler ?guesses? what the programmer most likely meant (which can occasionally introduce errors).

  Was this answer useful?  Yes

sanker

  • Nov 9th, 2005
 

A machine-wide code cache that stores assemblies specifically installed to be shared by many applications on the computer. Applications deployed in the global assembly cache must have a strong name.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions