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 15 sql server interview questions with answers

Q. What is sub query and its properties? A. A sub-query is a query which can be nested inside a main query like Select, Update, Insert or Delete statements. This can be used when expression is allowed. Properties of sub query can be defined as A sub query should not have order by clause. A […]

Read More

Access Values from All asp.net TextBoxes using jQuery

Let suppose we want to access values from all ASP.NET Textboxes on a Button click. Empty Textboxes should be ignored. JQuery Section: <script type=”text/javascript”> $(function () { $(‘input[id$=btnAll]’).click(function (e) { e.preventDefault(); $(“#para”).text(”) .append($(“input:text”).map(function () { return $(this).val() || null; }).get().join(“<br/> “)); }); }); </script> Explanation: To achieve this requirement,$.map() is an extremely useful function which […]

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