I recently discovered that I can actually use most of my favorite C# 3.0 language features even in projects that target .NET Framework 2.0. For some of you, this is probably a 'duh, of course you can, those are compiler features, not framework features!', but for those of you out there like me that didn't cotton on to this, I hope this blog will be good news!
So, here are the features you can use:
- object initializers
- lambda expressions (yeah!)
- automatic properties
- anonymous types
- local variable type inference
Again, this is because these features are all ...