Chapter 1. C# Language Elements
第一章 C#语言元素
Why should you change what you are doing today if it works? The answer is that you can be better. You change tools or languages because you can be more productive. You don't realize the expected gains if you don't change your habits. This is harder when the new language, C#, has so much in common with a familiar language, such as C++ or Java. It's easy to fall back on old habits. Most of these old habits are fine. The C# language designers want you to be able to leverage your knowledge in these languages. However, they also added and changed some elements to provide better integration with the Common Language Runtime (CLR), and provide better support for component-oriented development. This chapter discusses those habits that you should change and what you should do instead.
如果你现在做的还能工作,为什么还需要改变呢?答案就是:你可以做的更好。改变工具和语言,是因为你可以更具有生产力。如果不改变习惯,你就不会意识到可获得好处。当这个新的语言C#,与你熟悉的语言(C++ Java)有很多相似之处时,这会更加困难。人啊,很容易退回到旧有的习惯中。大多数的旧习惯是好的。C#语言的设计者希望你能够利用对这些语言的了解。然而,他们也增加、改变了一些元素来向CLR|提供更好的集成能力,对面向组件的开发提供更好的支持。这一章讨论了你应该改变的一些习惯以及取而代之的做法。。