Using an Indeterminate Number of Parameters (C# vs Java)
Full Name:
Using an Indeterminate Number of Parameters (C# vs Java)
Short Name:
Using an Indeterminate Number of Parameters (C# vs Java)
Type of Entity:
C#
Abstract:
C# allows you to send a variable number of parameters to a method by specifying the params keyword when the method is declared. The argument list can contain regular parameters also, but note that the parameter declared with the params keyword must come last. It takes the form of a variable length array, and there can be only one params parameter per method.
MSDN Source URL:
http://msdn2.microsoft.com/ms228391.aspx