C# 3.0 compatibility on .Net 2.0
问题 What are the C# 3.0 language features we can use in an application that targets .Net 2.0 framework ? PS:I know few like Lambda expressions and var keyword 回答1: Please see here: Using C# 3.0 (.Net 3.5) syntax in a .Net 2.0 application 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. In summary: You can't use the new 3.5 assemblies (System.Data.Linq, System.Xml.Linq, System.Core). You can't use Linq/Query Extensions or Extension