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]
Ajay Narkhedkar(1)
Brij Mishra(1)
Pradeep Shet(1)
Resources
No resource found
Inside the .NET Garbage Collector: How Mark, Sweep, Compact, and Finalization Really Work in C#
Jul 23, 2026.
Understand the .NET GC's Mark, Sweep, Compact, and Finalization phases. Learn how it efficiently reclaims memory and keeps your C# apps running smoothly.
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.
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.