官术网_书友最值得收藏!

Classes, Objects, and Data Structures

In this chapter, we will look at organizing, formatting, and commenting on classes. We will also look at writing clean C# objects and data structures that respect the Law of Demeter. In addition, we will look at immutable objects and data structures and the interfaces and classes that define immutable collections in the System.Collections.Immutable namespace.

We will cover the following broad topics:

  • Organizing classes
  • Commenting for document generation
  • Cohesion and coupling
  • The Law of Demeter
  • Immutable objects and data structures

As you progress through this chapter, you will learn the following skills:

  • How to effectively organize your classes using namespaces.
  • Your classes will become smaller and more meaningful as you learn to program them with only a single responsibility.
  • When it comes to writing your own APIs, you will be able to provide good developer documentation by providing comments that aid document generation tools.
  • Any programs you write will be easy to modify and extend due to their high cohesion and low coupling.
  • Finally, you will be able to apply the Law of Demeter and write and use immutable data structures.

So, let's start by looking at how we can effectively organize our classes by using namespaces.

主站蜘蛛池模板: 会东县| 明光市| 新干县| 鲁甸县| 清水河县| 息烽县| 福建省| 大英县| 丹凤县| 抚远县| 柞水县| 遵义市| 漳州市| 襄樊市| 航空| 绥中县| 遵义县| 高尔夫| 墨脱县| 塘沽区| 司法| 永嘉县| 页游| 上饶市| 桐梓县| 鱼台县| 济源市| 漳浦县| 旬阳县| 绵阳市| 定兴县| 仁布县| 临朐县| 白河县| 洛宁县| 临洮县| 鹤壁市| 邯郸县| 晋宁县| 武义县| 治多县|