What is a Garbage Collector?

Garbage collection is a .Net feature to free the unused code objects in the memory. The memory heap is divided into three generations. Generation 0, Generation 1 and Generation 2. Generation 0 – This is used to store short-lived objects. Garbage Collection happens frequently in this Generation. Generation 1 – This is for medium-lived objects. … Read more

What is meant by Globalization and Localization?

Internationalization is the process of designing applications that support multiple languages. This is divided into Localization and Globalization. Globalization is nothing but developing applications to support different languages. Existing applications can also be converted to support multiple cultures. Whereas Localization means changing the already globalized app to cater to a specific culture or language Microsoft.Extensions.Localization … Read more

What is GAC?

GAC stands for Global Assembly Cache. Whenever CLR gets installed on the machine, GAC comes as a part of it. GAC specifically stores those assemblies which will be shared by many applications. A Developer tool called Gacutil.exe is used to add any file to GAC. In the context of .NET interview questions, GAC stands for … Read more

Explain CAS (Code Access Security).

.Net provides a security model that prevents unauthorized access to resources. CAS is a part of that security model. CAS is present in the CLR. It enables the users to set permissions at a granular level for the code. CLR then executes the code depending on the available permissions. CAS can be applied only to … Read more

What is the difference between Function and Stored procedure?

Stored Procedure: A Stored Procedure is always used to perform a specific task. It can return zero, one or more value. It can have both input and output parameters. Exception handling can be done using a try-catch block. A function can be called from a Procedure. Functions: Functions must return a single value. It can … Read more