3. C# Design Practices

Software design is usually independent of the programming language you use. Still, to produce any running software you must express those designs in a programming language. There are many ways to express the same concept in any language, including C#. To produce the best possible software, you must express your designs in the clearest possible code. That clarity enables other developers to immediately understand your design intent, making it easier to maintain and extend their applications in the future. This chapter discusses how you can best express common designs in the C# language.

Item 17: Create Composable APIs for Sequences

You’ve probably written code that contains loops. In most programs, you tend to write algorithms ...

Get More Effective C#: 50 Specific Ways to Improve Your 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.