Chapter 14. CLASS ANATOMY PART III: WRITING INTUITIVE CODE

You will learn about the following in this chapter:

The constructs (properties, indexers, operator overloading, and user-defined conversions) discussed in this chapter do not enable us to write programs that could not easily be implemented by using the familiar method construct. In fact, some of these constructs are compiled into MSIL code that looks nearly identical to that generated for methods. Nevertheless, if we implement them when suitable in our classes, they allow the users of these classes to write cleaner ...

Get C# Primer Plus now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.