Author: ScottGu's Blog | Posted on: 4/2/2010 4:28:42 AM | Views : 802

[ In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] This is the seventeenth in a series of blog posts I'm doing on the upcoming VS 2010 and .NET 4 release. Today's post covers two new language feature being added to C# 4.0 - optional parameters and named arguments - as well as a cool way you can take advantage of optional parameters (both in VB and C#) with ASP.NET MVC 2. Optional Parameters in C# 4.0 C# 4.0 now supports using optional parameters with methods, constructors, and indexers (note: VB has supported optional parameters for awhile). Parameters are optional when a default value is specified as part of a declaration.  For example, the method below takes...(read more) ...

Go to the complete details ...