Back to Browse

Params keyword in C#.Net

1.3K views
Mar 29, 2021
11:30

1) In C#, params is a keyword. 2) Using the params keyword, we can specify a method parameter that takes a variable number of arguments. 3) The parameter type must be a single-dimensional array. 4) No additional parameters are permitted after the params keyword in a method declaration. 5) only one params keyword is permitted in a method declaration. 6) If the declared type of the params parameter is not a single-dimensional array, compiler error

Download

0 formats

No download links available.

Params keyword in C#.Net | NatokHD