站内搜索: 请输入搜索关键词
当前页面: 图书首页 > NET For Java Developers Migrating To C#

NET For Java Developers Migrating To C#

[ directory ] Previous Section Next Section

Chapter 17. Using C# Properties, Indexers, and Attributes

In the past few chapters we have seen how similar C# is to Java in many aspects. The makers of C# have introduced quite a few new concepts in C# that are very critical to writing good C# code. A Java programmer might be tempted to write C# code using Java conventions, and that is fine, but you might carry over the inefficiencies of Java into the C# code. The constructs that we discuss in this chapter are specifically designed to address these inefficiencies. Three constructs梡roperties, indexers, and attributes梙ave no Java equivalents.

    [ directory ] Previous Section Next Section