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.

No comments: