tags:

views:

184

answers:

3

What is the best language construction you have worked with in C#.

One of my favorites is Generics.

+1  A: 

delegates - hands down

They are a pain to build in C++ (but possible) - but just by virtue of them being available out of the box makes me love them :D

nlaq
+3  A: 

Somre related posts you might find interesting:

Franci Penov
+3  A: 

For simple productivity gains? The using statement - it saves a lot of cruft vs explicit try/finally.

Biggest single improvement within C# over time, for the imperative OO programmer: generics.

Biggest improvement in terms of how we approach coding: lambda expressions and LINQ.

I do have a soft spot for iterator blocks though.

Jon Skeet