With C# 3.0 you could use many of its features (object initializers, var variables, lambda expressions) while still targeting .NET 2.0 or 3.0.
What new C# 4.0 features can be used while still targeting the .NET 2.0, 3.0 or 3.5 runtimes?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Dynamic features: Probably not. I suppose they COULD implement the dynamic features without the DLR, but that doesn’t seem likely.
New generic constraints: The CLR supports them
Optional and named: CLR already supports it (VB-style)
Update: I just heard that C# 4 compiler will not support anything under 4.0 framework.