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,275 times
Add to favorites
E-mail Twitter Digg Facebook
Click an item in the panel on the left to view the contents here.