什么是 C#3.0 语言功能,我们可以在面向.NET 2.0框架的应用程序中使用?
What are the C# 3.0 language features we can use in an application that targets .Net 2.0 framework ?
PS:我知道一些类似的lambda EX pressions和 VAR
关键字的
请在这里看到:
在.NET 2.0的应用程序使用C#3.0(.NET 3.5)语法
Using C# 3.0 (.Net 3.5) syntax in a .Net 2.0 application
对于一个完整的运行你的时候针对.NET 2.0框架和使用C#3.0和不能做什么了。
For a complete run down of what you can and can't do when targeting the .NET 2.0 Framework and using C# 3.0.
在总结:
您的不能的使用新的3.5组件(System.Data.Linq程序,System.Xml.Linq的,System.Core程序)。 您的不能的使用的Linq /查询扩展或扩展方法(但请参阅下面的方法来能够同时使用的Linq /查询语法和推广方法!)。 您的可以的使用href="http://msdn.microsoft.com/en-us/library/bb383973.aspx" rel="nofollow"> var关键字