read more
Parameters allow information to be passed in and out of a method. To pass a parameter, you can include them inside the braces that follow the method name.
The syntax to declare a parameter is similar to the syntax used to declare variable. When more than one parameter is passes, they are separated using commas. When a method is called, you must pass the parameter to the method.
You can pass a parameter as a reference to the memory location. In this case, a function parameter in C# references the memory location of the parameter. A new memory location is not created in this case.