Functions in languages such as C# (and many, many, others) can take “parameters”. These are things you pass in to let the function do whatever it was designed to do. Consider:
public int Add(int x, int y)
{
return x + y;
}
int a = 5;
int b = 5;
int sum = Add(a, b);
In the above example, we are passing the variables a and b to the function Add. The function takes two parameters, x and y, and adds them together returning the result.
1
solved What does passing a parameter mean? in C# [closed]