开发者

How to use .NET 3.x features in .NET 2.0 (Visual Studio 2008)

开发者 https://www.devze.com 2022-12-09 12:34 出处:网络
You\'re stuck with targeting .NET 2.0 in Visual Studio 2008, but you\'d like to use all the latest goodness fro开发者_如何学Cm .NET 3.x features, like:

You're stuck with targeting .NET 2.0 in Visual Studio 2008, but you'd like to use all the latest goodness fro开发者_如何学Cm .NET 3.x features, like:

  • LINQ
  • Extension Methods
  • Lambdas

What can one do to enable this awesomeness?

EDIT: I had not originally found the post: C# .NET 3.0/3.5 features in 2.0 using Visual Studio 2008. Go there for an answer.


How to Use .NET 3.5 Features and C# 3.0 Syntax in .NET 2.0?

Also, at Stackoverflow: C# .NET 3.0/3.5 features in 2.0 using Visual Studio 2008


.NET 3.x features are built upon 2.0. Have you tried adding System.Core as a reference?


Extension methods and lambda expressions, at least, are available when targeting .NET 2.0 - see C# .NET 3.0/3.5 features in 2.0 using Visual Studio 2008.


Convince your employer to update and allow you to target 3.5. Other than that your out of luck i think,

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号