03 July 2014

Run Function in SQL Server

Run Function in SQL Server
DECLARE <Variable> <Date Time>;
EXEC <variable> = <funciton name> '<Pass Value>';

PRINT <Variable>;

02 July 2014

types of delegates in c#


  • Single cast delegate
  • Double cast delegate


Single cast delegate                                                                        
One delegate object can call only one method, is known as single cast delegate.
Double cast delegate in c#
One delegate object can call more than one method in sequence ,is known as  multicast delegate.


01 July 2014

Method Parameters in C#

Value Parameters.
Reference Parameters.
Output Parameters.
Parameter arrays.

Value Parameters in C#
The Value  Parameters are used to pass for passing parameters into method by value.
Reference Parameters in C#
Reference parameters are used to pass parameters into Method by reference.
Output Parameters in C#
The Output parameters are used to pass results back to the calling Method.
use of  Parameter arrays in C#
A Method that can handle variable number of arguments,is known as parameter arrays.Parameter arrays  are declared using the keyword param.
Method Overloading in C#
To create More than one Method with same class name but with the different parameter lists and different definitions,is known as Method Overloading.