The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Using new syntax styles in .Net 3.5
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

stevePosted Apr 29, 2010, 7:45 PM
ah, thanks, I forgot some of those things after hearing about them :-) One thing that I used from the beginning, though, would make your examples even shorter: Instead of using: List<EmployeeNewStyle> list = new List<EmployeeNewStyle> (); one can use: var list = new List<EmployeeNewStyle> (); and the type for list will be automatically inferred. Also saves some pain when one later decides to change the type, only in one instead of two places it has to be updated.