What features of C # 4.0 can I use while still targeting the .NET 3.5 runtime?

With C # 3.0, you can use many of your functions (object initializers, var variables, lambda expressions), but at the same time target .NET 2.0 or 3.0.

What new features in C # 4.0 can I use when setting up runtime for .NET 2.0, 3.0, or 3.5?

+2
source share
1 answer
  • Dynamic features: maybe not. I believe that they CAN implement dynamic functions without DLR, but this does not seem likely.

  • New general restrictions: the CLR supports them

  • Optional and named: CLR already supports it (VB style)

Update: I just heard that the C # 4 compiler does not support anything under 4.0.

+2

All Articles