Read more at http://www.dotnetfunda.com/articles/article804-csharp-40-new-features-–-named-and-optional-parameters-.aspx
Author: Kunal2383
Saturday, March 6, 2010
C# 4.0 New Features – Named and Optional Parameters
In this post I will talk for one of the new feature in C# 4.0 – Named and Optional Parameter. Actually these are not a single feature but two different feature. You can get more benefit if you work with them together. So, what are those? Named parameter is a way to provide an parameter to the method using the name of the corresponding parameter instead of its position in the parameter list. Whereas, optional parameter allows you to omit arguments to member invocation.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment