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

你可能感兴趣的:(C#)