A paramter array is a special parameter for a function. You may pass one and only one parameter array to a function provided that it is the last parameter in the function. Now you can use a function by calling it with a variable number of parameters. The variable number of arguments that you pass must be of the same type. You create a parameter array with the params keyword.
Below is an example of the params keyword used in a C# function. We are passing in 4 integers to the function. The function can iterate through the array of integers with a foreach loop.