Object Lifetime
摘要
The previous chapters describe the automatic .NET memory management quite comprehensively. Chapter 6 contains information about how objects are created, while Chapters 7 – 11 describe in detail how they are collected when no longer needed. However, there are some side mechanisms, without the description of which your knowledge would not be complete. In this chapter, we will focus on three such mechanisms. Although they exist separately and can be used independently, they are conceptually related to each other. All of them are about a common topic – the lifetime of the objects.