The text of this article is not in this database — only its details are. Read it on the old site: Using new syntax styles in .Net 3.5
1 Comment
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Using new syntax styles in .Net 3.5
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
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.