Abstract
In the previous chapter, you learned a great deal about how to build custom class types using C#. Here, you will come to understand how the CLR is managing allocated objects via garbage collection. C# programmers never directly deallocate a managed object from memory (recall there is no “delete” keyword in the C# language). Rather, .NET objects are allocated onto a region of memory termed the managed heap, where they will be automatically destroyed by the garbage collector at “some time in the future.”
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 Andrew Troelsen
About this chapter
Cite this chapter
(2007). Understanding Object Lifetime. In: Pro C# with .NET 3.0. Apress. https://doi.org/10.1007/978-1-4302-0201-1_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0201-1_5
Publisher Name: Apress
Print ISBN: 978-1-59059-823-8
Online ISBN: 978-1-4302-0201-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books