.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.
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.
Course Overview [Autogenerated] Hey how you doing? My name's Elton and this is I disposable best practices to C# developers. I'm a Microsoft Azure M. V. P. And a freelance consultant and I've been using C# since the first release of .NET in 2000 and two. That's nearly 20 years and in all that experience some of the most common problems I've seen from developers not having a good understanding of I disposable this course are disposable best practices for C# developers will help you avoid those problems and write code which is high performing, low on resources and free of hard to find functional issues. First you'll learn what the eye disposable interface is, what it's for and what kind of problems you get if you don't use it correctly and these aren't edged case issues. You'll see problems with everyday objects like SQL connections and file streams. Next we'll have a closer look at memory management in .NET understanding the garbage collector and how it tidies up managed and unmanaged resources. You'll learn how to use the tools in visual studio to diagnose problems and you'll see how to implement I disposable correctly to avoid them. Then you'll see how I disposable fits with modern .NET architecture where you use dependency injection to manage object lifetimes and you'll learn how you need to work with common objects by DB contexts and HTTP times in that architecture. By the end of the course you'll have a good understanding of all the best practices for working with my disposable and we'll finish up with guidance of what you need to do every day and what you need to remember for less frequent situations. So join me and take your .NET apps to the next level of reliability with high disposable best practices for C# developers right here on Pluralsight Yeah.