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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.