今天了解了一下C# 4.0的一些新特性,并在VS2010里试了几把,主要的特性包括:
1. Dynamic binding
2. Named and Optional Arguments
3. Features for COM interop
4. Variance
5. Relationship with Visual Basic
学习资料
- New Features in C# 4.0
- [翻 译] C# 4.0新特性(白皮书)- Anders Liu
- C# 4.0's New Features Explained By Josh Fischer
- Generic Covariance and Contra-Variance in C# 4.0
- c#4.0 新特性之(Dynamic Lookup1, 2 Named and Optional Parameters1,2) - 维生素C.net
示例代码
Visual Studio 2010 Samples for C# 4.0
关于C#4.0语言特性,主要关注以下几个工程:
1. Named and Optional
2. Office Sample
3. Simple Variance
4. Python Sample
本文转自CoderZh博客园博客,原文链接:http://www.cnblogs.com/coderzh/archive/2010/04/24/csharp4-new-features.html,如需转载请自行联系原作者