C#中你可能不知道的8件事(zz)

8 things you probably didn’t know about C# » DamienG
1. Indexers can use params
2. Strings defined multiple times in your code are folded into one instance
3. Exposing types as a less capable type doesn’t prevent use as their real type
4. Variables in methods can be scoped with just braces
5. Enums can have extension methods
6. Order of static variable declaration in your source code matters
7. Private instance variables of a class can be accessed by other instances
8. The C# Language specification is already on your computer

posted on 2012-11-26 21:13  fresky  阅读(159)  评论(0编辑  收藏  举报

导航