observer design pattern

Here is the definition of observer design pattern The observer is know as a behavioral pattern, as it’s used to form relationship between object at run time. Its define a 1-m dependency objects so that when one object changes state, all its dependents are notified and update automatically. Bounce! Bounce! Bounce! OK, lets define above […]

Read More

multicast delegate

Multicast Delegate A Multicast delegate is delegate which has references to more than one function. When we invoke a multicast delegate, all function the delegate is pointing to, are invoked. A multicast delegate, invoke the methods in same order in which they are added. We can register a method with a delegate using + OR […]

Read More

Basics of delegate

What is delegate A delegate is a type safe function pointer. Delegate hold a reference to a function. The signature of the delegate must match the signature of the function, the delegate points to,otherwise we get a compiler error.This is the reason delegates as called type safe function pointers. A delegate is similar to a […]

Read More

C# Multithreading interview questions with answers Part 1

What is the difference between Process and Thread? A process is what the operating system uses to facilitate the execution of a program by providing the resources required. A process can start multiple threads. Every process is start with a single thread called primary thread. A single process can have multiple threads. Threads share the […]

Read More

top 5 c# interview question with answer

1. What is Managed or Unmanaged Code? Managed Code “The code, which is developed in .NET framework is known as managed code. This code is directly executed by CLR with the help of managed code execution. Any language that is written in .NET Framework is managed code”. Unmanaged Code The code, which is developed outside […]

Read More

create and run a console application

To create and run a console application Start Visual Studio. On the menu bar, choose File, New, Project. The New Project dialog box opens. Expand Installed, expand Templates, expand Visual C#, and then choose Console Application. The new project appears in Solution Explorer. If Program.cs isn’t open in the Code Editor, open the shortcut menu […]

Read More