← Back
Nick Chapsas June 7, 2025 33s

Don't use Finalizers in C#

Summary

The transcript discusses destructors in C#, revealing their unpredictable nature and limited utility in software development. Specifically, the discussion highlights that destructors run at unpredictable times during garbage collection, operate on background threads, and can negatively impact performance. The key practical takeaway is that developers should rarely use destructors, instead preferring the disposable pattern for resource management and only using destructors as a last resort when disposal methods might not be called.

View original episode ↗