Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

IDisposable Best Practices for C# Developers

.NET takes care of memory management for you, right? Mostly. But the Garbage Collector needs your help and that's where IDisposable comes in. This course will teach you how to use it correctly to prevent strange errors and crashes in your apps.

Intermediate
2h 17m
(216)

Created by Elton Stoneman

Last Updated May 13, 2021

Course Thumbnail
  • Course

IDisposable Best Practices for C# Developers

.NET takes care of memory management for you, right? Mostly. But the Garbage Collector needs your help and that's where IDisposable comes in. This course will teach you how to use it correctly to prevent strange errors and crashes in your apps.

Intermediate
2h 17m
(216)

Created by Elton Stoneman

Last Updated May 13, 2021

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

IDisposable is the only part of the platform where .NET asks for your help. If you don't use IDisposable correctly, the .NET Garbage Collector can't manage memory properly, so your app won't run efficiently, it may have strange errors, and it will eventually crash.

In this course, IDisposable Best Practices for C# Developers, you'll learn to manage object lifetimes and keep your apps running lean. First, you'll see what goes wrong if you don't dispose of objects, and how that can bring your apps down. Then, you'll explore the Garbage Collector to understand how .NET cleans up unused objects. Finally, you'll discover how to implement IDisposable throughout a distributed .NET application. When you’re finished with this course, you’ll have the skills and knowledge of managed and unmanaged memory to keep your .NET apps performing under any load.

IDisposable Best Practices for C# Developers
Intermediate
2h 17m
(216)
Table of contents

About the author
Elton Stoneman - Pluralsight course - IDisposable Best Practices for C# Developers
Elton Stoneman
39 courses 4.5 author rating 5987 ratings

Elton is an independent consultant specializing in systems integration with the Microsoft stack. He is a Microsoft MVP, blogger, and practicing Technical Architect.

Get started with Pluralsight