Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
C# & .Net Framework Reference
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

 
COPYRIGHT/DISCLAIMER | CONTACT US