Wednesday, September 23, 2009

Best Feature of C# 4

Optional Parameters. For real ... C++ had it ... python had it...... Excel required it (which meant that when using excel COM via c# you need to lookup the documentation and put in the default values yourself...) and .. VBA (and therefore VB.net) had it. Sure you had function overloading.... but still this is more fun!

Details of how it works here: http://geekswithblogs.net/michelotti/archive/2009/02/05/c-4.0-optional-parameters.aspx

Enjoy!

No comments:

Post a Comment