h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Method Parameters in C#

Method of Parameters

  • 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.