Skip to Main Content
C# 6.0 and the .NET 4.6 Framework, Seventh Edition
book

C# 6.0 and the .NET 4.6 Framework, Seventh Edition

by Andrew Troelsen, Philip Japikse
December 2015
Intermediate to advanced content levelIntermediate to advanced
1704 pages
43h 12m
English
Apress
Content preview from C# 6.0 and the .NET 4.6 Framework, Seventh Edition

CHAPTER 13

image

Understanding Object Lifetime

At this point in the book, you have learned a great deal about how to build custom class types using C#. Now you will see how the CLR manages allocated class instances (aka 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 to a region of memory termed the managed heap, where they will be automatically destroyed by the garbage collector “sometime in the future.”

After you have looked at the core details of the collection process, you’ll learn how to programmatically ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8 and .NET Core 3.1 Recipes (2nd Edition) - Second Edition

C# 8 and .NET Core 3.1 Recipes (2nd Edition) - Second Edition

Dimitiris Loukas
C# 6.0 in a Nutshell, 6th Edition

C# 6.0 in a Nutshell, 6th Edition

Joseph Albahari, Ben Albahari

Publisher Resources

ISBN: 9781484213322Purchase book