value parameters in C#

A parameter declared without a ref or out modifier is a value parameter: 

Code Snippet
  1. MethodA(10,10);                          /* MethodA calls with 10,10 */
  2. ...
  3. void MethodA( int a, int b){}            /* MethodA has two parameters a, b */

Post a Comment