C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Sourav Kayal(6)
Tanuj (4)
Ananya Desai(3)
Sandhiya Priya(3)
George (3)
Eranda Horanagama(3)
Chandra Hundigam(3)
Matthew Cochran(3)
Saurav Kumar(2)
Ck Nitin(2)
Ashish Bhatnagar(2)
Micheal Xavier A (2)
Gurpreet Arora(2)
Swagata Prateek(2)
Nidhi Sharma(1)
Jayraj Chhaya(1)
Raghunath Bhukan(1)
Aarav Patel(1)
Muhammad Ahmad Saeed(1)
Baibhav Kumar(1)
Rinki (1)
Dashrath Hapani(1)
Arumilli Yamini(1)
Lokendra Singh(1)
Sardar Mudassar Ali Khan (1)
Vijay Pratap Singh(1)
Jithu Thomas(1)
Ishika Tiwari(1)
Ashutosh Singh(1)
Munesh Sharma(1)
Nicolas Descartes(1)
Vinoth Xavier(1)
Jefferson S. Motta(1)
Jagannath Sethi(1)
Prathap Reddy(1)
Amit Bhatt(1)
Bohdan Stupak(1)
Mohammad Irshad(1)
Mukesh Kumar(1)
Gaurav Kumar(1)
Niloshima Srivastava(1)
Shubham Jain(1)
Ranjan Dailata(1)
Prakash Tripathi(1)
Kailash Chandra Behera(1)
Baimey Rajesh(1)
Praveen Kumar(1)
Jignesh Trivedi(1)
Brij Mishra(1)
Jeetendra Gund(1)
Pradeep Shet(1)
Shweta Lodha(1)
Hemant Solanki(1)
Satendra Singh Bhati(1)
Vidya Vrat Agarwal(1)
Sandeep Sharma(1)
Abhishek Dubey(1)
Sonakshi Singh(1)
Nitya Sharma(1)
Javeed M Shaikh(1)
Vikas Garg(1)
Suchit Khanna(1)
Ritesh Ratna(1)
C# Curator(1)
Shivprasad (1)
Senthilkumar (1)
Praveen Kumar(1)
Santhosh Veeraraman(1)
Anand Thakur(1)
Gregory Popek(1)
Demir (1)
Dipal Choksi(1)
Stuart 0(1)
John Godel(1)
Resources
No resource found
Memory Profiling in C#: Detecting and Preventing Memory Issues in .NET Application
Mar 03, 2026.
Master C# memory profiling! Detect and prevent memory leaks, optimize .NET applications, and boost performance. Essential for scalable, robust systems.
Garbage Collection Internals in .NET: How Memory Management Really Works
Mar 03, 2026.
Unlock .NET's garbage collection secrets! Explore generational memory management, LOH behavior, GC modes, and optimization techniques for high-performance C# apps.
How to Profile and Fix Memory Leaks in Backend Applications?
Mar 03, 2026.
Fix backend memory leaks! Profile, analyze heap snapshots, and implement solutions like bounded caching and proper resource cleanup. Ensure stable performance.
C# Performance Optimization Techniques Every Developer Should Know
Mar 02, 2026.
Boost C# app performance! Master value/reference types, minimize allocations, optimize LINQ, and conquer concurrency. Profile, cache, and choose collections wisely.
⚡ 15 C# Performance Mistakes That Kill Your Application (And How to Fix Them).
Feb 25, 2026.
Boost C# app performance! Discover 15 common mistakes that kill scalability & learn how to fix them. Essential for APIs, microservices, & high-throughput systems.
How to Detect and Fix Memory Leaks in Java Applications
Feb 20, 2026.
Master Java memory leak detection & prevention! Learn to identify causes, use profiling tools, and apply fixes for stable, scalable production apps.
How to Reduce GC Pressure in .NET Applications Effectively
Feb 20, 2026.
Reduce .NET Garbage Collection (GC) pressure for optimal performance! Learn practical strategies to minimize allocations, optimize code, and boost application speed.
ZLINQ vs LINQ
Feb 20, 2026.
Unlock peak .NET performance! Compare LINQ & ZLINQ for querying data. Discover when ZLINQ's zero-allocation approach crushes LINQ in speed and memory efficiency.
How to Debug Memory Leaks in Long-Running Backend Services
Jan 28, 2026.
Debug memory leaks in backend services! Learn to identify, diagnose, and fix leaks caused by caches, references, resources, & libraries. Keep your services stable.
How to Improve Performance in C# Applications
Jan 16, 2026.
Boost C# app performance! Learn proven techniques: reduce allocations, use async, optimize data structures, and more. Build faster, scalable, reliable apps.
How Does Garbage Collection Work in C#?
Jan 15, 2026.
Unlock C#'s automatic memory management! Learn how garbage collection reclaims unused memory, preventing leaks and boosting performance. A must-read for C# developers!
Smarter Memory Management for Long-Running Apps: ASP.NET Core in .NET 10 Automatically Releases Unused Pooled Memory
Jan 12, 2026.
.NET 10 enhances ASP.NET Core with automatic pooled memory trimming, reducing memory usage in long-running apps like APIs and services. Learn how it works and benefits you!
Exploring Advanced Features in Java Streams for Cleaner Data Processing
Dec 19, 2025.
Explore advanced features of Java Streams for cleaner and more efficient data processing. Learn grouping, collectors, parallel streams, custom collectors, and best practices with simple examples.
Understanding JavaScript Memory Management: Garbage Collection, Memory Leaks, and Profiling
Dec 07, 2025.
Understanding JavaScript Memory Management: Garbage Collection, Memory Leaks, and Profiling
Learn Garbage Collection in C#
Oct 29, 2025.
Learn how Garbage Collection (GC) works in C# ASP.NET WebForms with a practical example. Prevent memory leaks and optimize your web application's performance.
Understanding Garbage Collection, Cyclic References, and Memory Management in C#
Oct 27, 2025.
Master C# memory management! Explore garbage collection, cyclic references, weak references, and IDisposable for efficient, leak-free .NET applications.
Understanding Garbage Collection, Cyclic References, and Memory Management in C#
Oct 27, 2025.
Master C# memory management! Explore garbage collection, cyclic references, weak references, and the IDisposable pattern for efficient, leak-free .NET apps.
🧠 GC.Collect() vs GC.SuppressFinalize() in .NET — Deep Dive (with Real-World Examples)
Oct 15, 2025.
Unlock .NET memory management secrets! This deep dive explores GC.Collect() and GC.SuppressFinalize(), revealing when and how to use them effectively. Learn the nuances of garbage collection in .NET 8/9+, understand the Dispose pattern, and avoid common pitfalls. Real-world examples and best practices included for optimized .NET performance. Master deterministic cleanup and boost your app's efficiency!
🧠 What happen Behind .NET GC (Generational Collection)?
Oct 15, 2025.
Dive deep into the .NET Garbage Collector (GC) and its generational approach! Understand Gen 0, Gen 1, and Gen 2, plus the Large Object Heap (LOH). Learn how object promotion works, when full GCs are triggered, and the impact of compaction. Discover GC modes in .NET 8+ and practical performance tips for efficient memory management. Master the .NET GC!
How Does Python Manage Memory?
Aug 08, 2025.
Dive into the internal memory management system of Python. Understand how Python allocates, tracks, and frees memory using techniques like reference counting, garbage collection, and memory pools.
Constructors and Finalizers in Java: From Object Creation to Efficient Cleanup
Jul 28, 2025.
Constructors are called whenever an instance of a given class is created. Finalizers are used to destroy the object created using constructors. A Constructor method is a special kind of method that determines how an object is finalized when created. They have the same name as the class and do not have any return type.
Garbage Collection (GC) in .NET
Jul 05, 2025.
Garbage Collection (GC) in .NET is an automated memory management system that enables us to build reliable applications without constantly worrying about memory allocation and cleanup.
Common Language Runtime (CLR) in .NET
Jul 02, 2025.
The Common Language Runtime (CLR) is the core of .NET, managing code execution, memory, security, and cross-platform compatibility. It compiles IL to native code, enabling safe, efficient app performance.
Understanding Garbage Collection and Cyclic References in C#
May 20, 2025.
This article explores .NET memory management, focusing on how the garbage collector handles cyclic references, and how weak references and the `IDisposable` pattern help prevent memory leaks in C# applications.
Memory Management in .NET
Mar 31, 2025.
Memory management in .NET is handled by the Garbage Collector (GC), which automatically allocates and frees memory to optimize performance.
Understanding Garbage Collection
Jan 31, 2025.
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.
Understanding the Working of Garbage Collector in .NET 9
Sep 30, 2024.
The .NET 9 Garbage Collector enhances memory management through dynamic tuning, improved generation collections, and a refined compaction algorithm, ensuring efficient, automated memory handling while optimizing application performance.
Exploring the Performance Boosts in .NET 9
Sep 20, 2024.
.NET 9 introduces key performance improvements, including Native AOT for faster startup times and reduced memory usage, optimized garbage collection, enhanced threading for multicore systems, and HTTP/3 support for improved network performance.
Learn Garbage Collection in Python
Jun 17, 2024.
Discover how garbage collection in Python manages memory automatically, preventing memory leaks and optimizing performance. Learn about reference counting, the role of the garbage collector, handling circular references, and best practices for efficient memory management in Python applications.
Garbage Collection (3), C# using statement --- Language support for Dispose
Jun 17, 2024.
This article will discuss the C# using a statement. Garbage collection (GC) in computer science reclaims unused memory automatically. Invented by John McCarthy in 1959, GC simplifies memory management. This series explores GC in .NET, focusing on managed, unmanaged code and the `using` statement for resource management.
Optimizing Memory Management in C#
Jun 04, 2024.
In this article, we will learn Memory management and optimization are crucial aspects of C# development, especially for applications that demand high performance and efficient resource utilization.
Understanding Garbage Collection in .NET Core
May 05, 2024.
Garbage collection (GC) is a fundamental aspect of memory management in modern programming languages like C#. In the context of .NET Core, the GC system plays a crucial role in automatically reclaiming memory that is no longer in use, thereby preventing memory leaks and ensuring efficient memory utilization.
Learn Memory Management in JavaScript
Apr 08, 2024.
JavaScript employs automatic memory management through garbage collection, eliminating manual memory allocation and deallocation. Here's how it works and considerations for efficient coding.
What is Use of ‘Using’ Statement in .NET?
Mar 15, 2024.
In this article, we will cover What is the use of the ‘Using’ statement in .NET. The 'using' statement in .NET ensures efficient resource management, prevents memory leaks, and promotes cleaner, more reliable code.
.NET 8 Memory Management: Refreshing Dynamic Memory Limits
Feb 06, 2024.
In the ever-evolving landscape of software development, optimizing resource utilization is crucial, especially in dynamic cloud environments.
How to Refresh Memory Limit in .NET 8
Feb 05, 2024.
In .NET 8, adjust memory limits dynamically with GC.RefreshMemoryLimit(). Ideal for cloud environments, this feature allows efficient scaling of memory usage.
Implementing a Simple Garbage Collector in C#
Nov 27, 2023.
We are initiating a series of articles on garbage collection with a progressive approach. Our goal is to spotlight the theoretical concepts and the practical implementation, providing clear illustrations of the associated challenges.
.NET Core: Detail of Lifetime Management
Nov 21, 2023.
In .NET Core, lifetime management refers to how objects are created, used, and eventually disposed of within an application. It ensures efficient resource utilization and prevents memory leaks.
Advanced Garbage Collection Potential
Oct 25, 2023.
Learn commands of the Garbage Collector to work efficiently. I encountered a significant obstacle during a recent image and pdf processing project using Windows Forms Applications. Despite having a system equipped with x64 architecture and an abundance of RAM, the application consistently failed, unable to handle the processing load.
Garbage Collection in C#
Sep 08, 2023.
In C#, garbage collection is a memory management process where the runtime environment automatically identifies and reclaims memory that is no longer in use by the program. It helps prevent memory leaks and ensures efficient memory utilization by tracking and deallocating objects that are no longer reachable or referenced by the program. The .NET runtime provides an automatic garbage collector that runs in the background, making it easier for developers to work with memory without having to explicitly free memory resources like in languages with manual memory management, such as C and C++. This automated process helps improve code safety and reduces the risk of memory-related errors.
Optimizing Your Azure ExpressRoute Connection with Traffic Collectors
May 01, 2023.
ExpressRoute is a service provided by Microsoft Azure that enables customers to establish private, dedicated connections between their on-premises infrastructure and Azure datacenters. To monitor and analyze the traffic flowing over an ExpressRoute connection, customers can use traffic collectors.
Difference Between "RUNTIME" Class And "CLASS" Class
Jan 30, 2023.
The Runtime class encapsulates the runtime environment. In a running java application, the instances of this class encapsulates the run time state of an object.
C# IDisposable And Garbage Collector
Aug 25, 2022.
This article explains when to use IDisposable and how we can utilize memory
Garbage Collection (2), Manage UnManaged Code
Feb 18, 2021.
Discuss the garbage collection with unmanaged code: How to manage the unmanaged code in .NET, Dispose pattern
Garbage Collection (1), Manage Managed Code
Feb 15, 2021.
Discuss the garbage collection with managed code: what is the process of the memory management of .NET in this article, while in (2) I will discuss How to manage the unmanaged code in .NET
Using Span<T> To Improve Performance Of C# Code
Jul 13, 2020.
To enhance application performance, reducing IO calls and utilizing stack allocation is crucial. Leveraging value types and the Span<T> structure in C# allows efficient memory management and improved speed.
Garbage Collection - Dispose Vs Finalize And IDisposable Pattern
Oct 29, 2019.
Explore Finalize, Destructor, IDisposable pattern in C# for managing unmanaged resources. Learn about memory management, Garbage Collector behavior, and IDisposable interface. Implement IDisposable for efficient memory cleanup and use Using block for automatic disposal, optimizing performance.
Understanding Garbage Collection In .NET
Jul 24, 2019.
In this article, we will learn how Garbage Collection works, with an example demonstrating different variable types and their scopes.
Garbage Collection In Java
May 12, 2019.
In this article, you will learn about garbage collection in Java.
What's New In JDK 12 Release
Apr 05, 2019.
This article mainly focuses on the new features of JDK 12, including some Java language-level features.
Garbage Collection In .NET
Oct 15, 2018.
In .NET framework, each and every type identifies some resources which are available for the program’s use. To use these resources, memory needs to be allocation which represents the type.
Garbage Collector And Destructor In C#
Jan 19, 2018.
Garbage collector looks for an instance/object which is not required anymore and treats these objects/instances as ready to destroy. Then, it makes a call to the destructor to release the memory and deallocate the resources.
Deep Dive Into C# - Garbage Collection And Disposal - Part Two
Dec 27, 2016.
An in-depth discussion covering dispose pattern, finalizers, and handling unmanaged resources in C#.
Deep Dive Into C# - Garbage Collection And Disposal - Part One
Dec 27, 2016.
A primer on garbage collection and disposal theories in .net.
Collector, Translator And Formatter Pattern
Feb 03, 2016.
In this article, I will be introducing you the Collector, Translator and Formatter pattern.
Preparing .NET Interview - Part 1 (Framework)
Jan 11, 2016.
Preparing for a .NET interview (Part 1 - Framework) involves understanding key concepts like CLR, BCL, assemblies, and memory management. Familiarize with C#, garbage collection, reflection, and .NET Core. Know about NuGet, DI, and .NET standards for comprehensive readiness.
Why We Should Prefer To Use Dispose Method Than Finalize Method
Nov 01, 2015.
This article explores the benefits of Dispose for efficient resource cleanup, improved performance, and reliable memory management in C#. Discover best practices for handling managed and unmanaged resources effectively.
Garbage Collection In .NET 4.5
Sep 08, 2015.
In this article you will learn the new features in .NET 4.5.
Monitoring the Activities of Garbage Collection in .NET Using CLR Profiler
Jan 05, 2015.
In this article we learn about garbage collection and it's generations as well as how we can monitor it using the CLR Profiler.
Garbage Collection In Depth
Jan 05, 2015.
This article looks at Garbage Collection in depth.
Steps To Override Finalize In C#
Nov 20, 2014.
C# does not allow overriding the Finalize method. Let's see how to do that.In C#, the Finalize method is used for cleaning up unmanaged resources before an object is destroyed by the garbage collector. It is a method provided by the base class Object. You can override the Finalize method in your own class to provide custom cleanup logic for unmanaged resources when an object is garbage collected.
.NET Memory Management
Oct 29, 2014.
In this article, I am giving you a broad idea of how the garbage collector works in Microsoft's implementation of the .NET Framework.
Cleaning the Resources: Finalize vs Dispose
Jul 09, 2014.
This article explores the concepts of Destructor and Dispose in C#. It illustrates the object's lifecycle, highlighting how constructors allocate memory and destructors clean up. The role of the Garbage Collector is discussed, emphasizing the importance of implementing IDisposable for managing unmanaged resources efficiently.
Performance Analysis For String and StringBuilder
Feb 24, 2014.
This article will give you an overview of when and how to use the String and StringBuilder classes with proper statistical data using the CLR Profiler.
Learn about Garbage Collector in .NET
Jan 26, 2014.
This article discusses the .NET Garbage Collector and its role in memory management, distinguishing between managed and unmanaged resources. It highlights the limitations of using Objects. Finalize for cleanup and advocate for the Dispose method to release unmanaged resources efficiently.
Garbage Collection in Java
Nov 13, 2013.
Java has very strong memory management. In Java, when an object is not of some use, or we can say that we do not need that object in the future, then it destroys that specific object. The amount of memory is now free for any other use that was occupied previously. This entire process is done by the Garbage Collector in Java
Demystify garbage collection: Part 6: Understand concept of generation
Aug 25, 2013.
In today’s article we will understand the concept of generation more closely.
Demystify Garbage Collection in C#: Part 5
Aug 24, 2013.
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.
Demystify Garbage Collection in C#: Part 4
Aug 18, 2013.
Here you will learn one very important concept of garbage collection called “Finalize dispose pattern”.
Demystify Garbage Collection in C#: Part 3
Aug 17, 2013.
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.
Demystify Garbage Collection in C#: Part 2
Aug 14, 2013.
In previous article we were talking about concept of Generation. When a fresh object get create it creates in generation 0 (Unless it is very large object, in .NET more than 85,000 bytes objects are consider as large object).
Demystify Garbage Collection in C#: Part 1
Aug 12, 2013.
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.
CLR Internals - Process and Application Domain
May 28, 2013.
In this article, you‘ll drill deeper into the details of how an assembly is hosted by the CLR and come to understand the relationship between application domain (appdomain) and processes.
Garbage Collector In Java 7 New Concept
Apr 20, 2013.
In this article we discuss the Garbage Collector in Java 7.
Understanding Destructors in VB.NET
Nov 10, 2012.
This article is about understanding the working concept of destructor in VB.NET.inShare. 642811
Destructors in VB.NET
Nov 10, 2012.
This article is about understanding the working concept of destructor in VB.NET.
Garbage Collection in Java
Mar 31, 2012.
In this article we are going to describe the most popular concept of java that Garbage collection. In this article we describe that what is garbage collection and why use garbage collection benefit of garbage collection etc
Microcontroller Based Robotic Garbage Collector
Dec 06, 2011.
In this article a light has been thrown on how can we make a garbage collector by using C# algorithm and to apply it in different hardware components.
Back To Basics - Dispose Vs Finalize
Nov 16, 2011.
We have been using the Dispose method for disposing objects in .NET. For the same purpose, we may also use the Finalize method. In this article I will try to explain what the Dispose and the Finalize methods are and where to use the Finalize and where to use the Dispose.
How Does Your "Code Smell"
Oct 21, 2011.
"Code smell" refers to indicators in code that suggest potential problems. Common examples include poor exception handling, magic numbers, and inefficient string operations. Other issues involve neglecting compiler warnings, unnecessary object initialization, and lack of comments.
.Net Architecture And .Net Framework Basics
Apr 26, 2011.
.NET architecture encompasses the Common Language Runtime (CLR) and Common Type System (CTS), executing Intermediate Language (IL) through Just-In-Time (JIT) compilation.
Garbage Collector in .NET
Dec 27, 2010.
Garbage Collector is common term for developers working with high level languages such as Java, .NET, Ruby etc.
Garbage Collection: Memory Management in .Net
Jun 15, 2010.
In this article we will look at the mechanics of the Garbage Collection and the Memory Management.
Garbage Collection in C#
Dec 20, 2009.
In this article I will explain you about Garbage Collection in C#.
.NET Best Practice No: 2:- Improve garbage collector performance using finalize/dispose pattern
Aug 23, 2009.
In this article we will first understand the concept of generations and then we will see the finalize dispose pattern. I am sure this article will change your thought process regarding destructor, dispose and finalize.
Garbage Collection in .Net framework
Aug 06, 2009.
Garbage Collection (GC) is an important tasks of .NET framework. In this article, I'll explain Garbage collection basics and how it works including C# garbage collection code example.
Working of Garbage Collector - Part II
Sep 24, 2008.
this article explains you how garbage collector is well tuned for its maximum performance
Working of Garbage Collector: Part I
Sep 01, 2008.
This article gives you a brief introduction about the c# garbage collector algorithm.
Chapter 1: C# Preview
Jan 22, 2008.
This chapter explains you the brief description about the difference between c# and c++ and also gives you an overview of what's new in c# 3.0.
Points to remember about .Net
Sep 11, 2007.
This article will give you some tips about .Net. This could be helpful for you especially when you prepare for interviews.
The C# Value Type and Boxing
Feb 17, 2006.
Even though with the .NET framework we don't have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications. One of the things we need to be aware of is how the Common Language Runtime (CLR) deals with references to value types.
C# Heap(ing) Vs Stack(ing) In .NET - Part Two
Jan 15, 2006.
Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article I'll cover some of the behaviors we need to be aware of when passing parameters to methods.
C# Heap(ing) Vs Stack(ing) In .NET - Part One
Jan 14, 2006.
Even though with the .NET framework we don't have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications.
Garbage Collector Algorithm
Dec 22, 2005.
This article explains how garbage collector algorithm works in order to clean managed heap.
Writing unsafe code - pointers in C#
Oct 13, 2004.
In this article I will give a short description of one of the feature of C# which are pointers and so-called unsafe code. This subject is particularly close for C++ programmers. Moreover, it is a feature that we do not find in Java.
Remoting Calls Recommendation
Sep 19, 2002.
The goal of this article is not to describe remoting technology in details. It is more focused at the practical design and implementation mistakes development process concerning garbage collection and performance.
Understanding Garbage Collection in the .NET Framework
Aug 09, 2002.
In this article we will explore the Garbage Collection feature in the .Net framework and the activities required in applications to manage resources complementing the Garbage Collector.
Understanding Destructors in C#
Jun 18, 2002.
This article is about understanding the working concept of destructor in C#. As you read this article you will understand how different is C# destructor are when compared to C++ destructors.
.NET Performance Counters, Part 1: Predefined CLR Performance Counters
May 13, 2002.
In this article, I will describe what a performance counter is and introduce you to the predefined counters that you can use to monitor the state of the CLR while your applications run.
How Can You Migrate your Existing Applications?
Dec 20, 2001.
When a new technology emerges, companies and developers begin to wait anxiously for answers to their questions.