What is caching?

Caching simply means storing the data temporarily in the memory so that the data can be accessed from the memory instead of searching for it in the original location. It increases the efficiency of the application and also increases its speed. Following are the types of caching: Page caching Data caching Fragment caching In the … Read more

What is a garbage collector?

Garbage collector feature in .NET frees the unused code objects in the memory. The memory head is divided into 3 generations: Generation 0: It stores short-lived objects. Generation 1: This is for medium-lived objects. Generation 2: It stores long-lived objects. Collection of garbage refers to the collection of objects stored in the generations. In a … Read more

What are MDI and SDI?

MDI( Multiple Document Interface): An MDI lets you open multiple windows, it will have one parent window and as many child windows. The components are shared from the parent window like menubar, toolbar, etc. SDI( Single Document Interface): It opens each document in a separate window. Each window has its own components like menubar, toolbar, … Read more

What are the different types of assemblies?

There are two types of assemblies: Private Assembly: It is accessible only to the application, it is installed in the installation directory of the application. Shared Assembly: It can be shared by multiple applications, it is installed in the GAC. In the .NET framework, there are primarily four types of assemblies: Private Assemblies: These assemblies … Read more

What are the different types of constructors in c#?

Following are the types of constructors in C#: Default Constructor Parameterized constructor Copy Constructor Static Constructor Private Constructor In C#, there are three types of constructors: Default Constructor: This constructor is provided by the compiler if no constructor is defined explicitly in a class. It initializes the object with default values. For classes, the default … Read more