How to Declare and Use a Method with Named and Optional Parameters

C# 4.0 supports named and optional parameters. This program demonstrates how to declare a method with named and optional parameters, and how to call the method while making use of the default values for the parameters, and by explicit naming particular parameters.

C# (51.7 KB)
 
 
 
 
 
4 Star
(1)
1,275 times
Add to favorites
6/21/2011
E-mail Twitter del.icio.us Digg Facebook