Current .Net Version: 1.1.4322
Home
Articles
Practice C# Online
C# Reference
XML Web Services
RSS Feeds
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog
ROR XML Info.
C# Reference
The world's largest C# Language & Framework Class Library Reference Database (second only to Microsoft's)!
Language Reference:
Language Search:
Framework Class Library Reference:
Framework Class Library Search:

formal-parameters
Is a:Definition
Applies to Version:C# 1.0 and later
Namespace:N/A
Assembly:N/A (N/A)
Description:A list of one or more comma-separated parameters of which only the last may be a parameter-array.
MSDN:http://msdn.microsoft.com/library/en-us/csspec/html/vclrfcsharpspec_10_5_1.asp?frame=true
Example(s):public void DoSomething1(String s1, String s2, params String[] args) { // String s1, String s2, and params String[] args are the parameters } // oops, the following will cause an error because the parameter-array // must be declared last in the formal parameters list: public void DoSomething2(params String[] args, String s1, String s2) { // String s1, String s2, and params String[] args are the parameters }
 
COPYRIGHT/DISCLAIMER | CONTACT US