Monday 15 October 2007

New language features in .NET 3.5

I am currently using Beta 2 for development of a new Credit Returns system for Pfizer. There are some very handy features in 3.5 that make life a lot easier and less code intensive! My favourites are
  1. Automatic properties (so I don't have to manually create private variables to hold the values of my properties but still have the benefits of properties over public fields).
  2. Collection initializers (so I can set properties inline with the call to the constructor).
For more information on these new features, see Scott Guthrie's blog:

http://weblogs.asp.net/scottgu/archive/2007/03/08/new-c-orcas-language-features-automatic-properties-object-initializers-and-collection-initializers.aspx

No comments: