Back to Writing
NOTEScsharpparamslanguage-features
C# params Keyword: Passing Variable-Length Arguments
October 20, 2019•Updated Feb 17, 2026
When passing multiple variables of the same type as arguments, the simplest approach that comes to mind is method overloading.
For example, imagine you've created a function that adds all arguments in order.
The inconvenience of this approach is solved by the params keyword.
More specifically, params lets you pass multiple arguments of the same type as a comma-separated list, which the method receives as an array.