3

Classes, Objects, and Data Structures

This chapter will provide an in-depth exploration of key concepts in C# object-oriented programming (OOP). We will examine the importance of effective organization, formatting, and commenting when working with classes. Additionally, we will delve into the Law of Demeter and how it can be used to create clean and maintainable code. The chapter will also cover immutable objects and data structures, exploring the interfaces and classes in the System.Collections.Immutable namespace. Through these discussions, you will gain practical insights and skills that can help you write better code, organize your work more efficiently, and become a more proficient C# developer.

We will cover the following topics in ...

Get Clean Code with C# - Second Edition 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.