Skip to main content

Posts

Showing posts from July, 2012

Multiple Return Values

  How to return multiple values from function? As normally method return single value eg.  private int add(int a, int b) { int result=a+b; return result; } but in situation where we need to return more than one value this article is helpful.

Use of Delegates and Events

  Use of Delegates and Events In this article we will first try to understand what problem delegate solves, we will then create a simple delegate and try to solve the problem. Next we will try to understand the concept of multicast delegates and how events help to encapsulate delegates. Finally we understand the difference between events and delegates and also understand how to do invoke delegates asynchronously.

Restore Database during Application Deployment

In applications developed in .NET for data storage is often used MS SQL Server. During distribution of the application, one of the frequently asked questions is Database installation method on the Target Machine (the PC or workstation your project will be installed on). The method described in this paper allows execute operation Restore Database at installation stage of application.