Skip to content

Garbage collection in C#

7 posts4 contributors

+ FollowBe the first to follow this
Write about it

Articles about Garbage collection in C#

  1. CLR (Common Language Runtime) in C#

    Learn how the Common Language Runtime works in C#, including JIT compilation, garbage collection, memory management, exception handling, type safety, and threading.

    TanujTanuj3,7951,000
  2. Understanding Garbage Collection

    Garbage Collection in C# automatically manages memory by clearing expired objects. It uses generations (Gen 0, 1, 2) for optimization. Dispose and Finalize handle resource cleanup, preventing memory leaks and enhancing performance.

    Arumilli YaminiArumilli Yamini2,4291,000
  3. Demystify Garbage Collection in C#: Part 4

    Here you will learn one very important concept of garbage collection called “Finalize dispose pattern”.

    Sourav KayalSourav Kayal12,8911,000
  4. Demystify Garbage Collection in C#: Part 5

    In this article we will see how the Garbage Collection algorithm works. We will next see how to implement a weak reference to optimize performance.

    Sourav KayalSourav Kayal15,9051,000
  5. Demystify Garbage Collection in C#: Part 3

    Today we will clarify one fundamental idea of Garbage Collection. The idea is that a destructor is nothing but a finally block in C# and the finally block is always used to clean up resources.

    Sourav KayalSourav Kayal11,3331,000
  6. Demystify Garbage Collection in C#: Part 1

    In this series of article we will try to learn few general concept of garbage collection in C#.NET. And in upcoming article we will dig in dipper and try to learn few behind the screen concept.

    Sourav KayalSourav Kayal23,6591,000
  7. Garbage Collection in .NET

    This article will describe about Garbage Collection. Garbage collection in Microsoft .NET common language runtime environment completely absolves the developer from tracking memory usage and knowing when to free memory.

    Niradhip ChakrabortyNiradhip Chakraborty8,0591,000