In C# there is a params keyword which allows a method parameter to take variable number of arguments. MSDN

Some notes on param

  • It must always be the last parameter in the function/method definition
  • There can only be one params keyword in a function/method parameter signature

Example:

But by changing it to params we can change the call and simplify it

There is no performance bottleneck in using params because the compiler is basically changing your code into an array for you, thus it is basically just syntactic sugar for C#.