Chapter 20. Introducing Operations

When you write a C# method, you produce a fundamental unit of work that is a level up from writing a statement. Your methods have to participate in an overall design, architecture, and test plan, but no activity is more central to programming than writing methods. Ironically, despite the central role of methods, it is easy to get confused about what methods are and how methods function. This confusion may stem from the tendency of many developers (and authors) to mix the meaning of the words method and operation. In addition, delegates in C# introduce new concepts for many developers. The concepts of “algorithm” and “polymorphism” are more abstract than methods, and yet they are ultimately realized by methods. ...

Get Design Patterns in C# 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.