Parámetros en C# - Por valor
Friday, June 27th, 2008El modo más sencillo de pasar el valor de una variable a un método se puede ver en el siguiente ejemplo:
using System;class Parametros {
static void Main () {
int a = 2;
int b = 3;
int c = Suma (a, b);
Console.WriteLine (”{0} + {1} = {2}”, a, b, c);
}
static int Suma (int a, int b) { […]



