IDisposable Best Practices for C# Developers
Pluralsight
Course Summary
IDisposable is at the heart of .NET. This course will teach you all about implementing and using IDisposable in C#, and show you what goes wrong if you don't use IDisposable, so you know why you need to use it in your solutions.
-
+
Course Description
IDisposable is at the heart of .NET, and it's been there since the first release. It is the only part of the framework 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. This course will teach you all about implementing and using IDisposable in C#, and show you what goes wrong if you don't use IDisposable, so you know why you need to use it in your solutions.
-
+
Course Syllabus
Introducing IDisposable- 32m 28s
—Introducing the Course 3m 42s
—About IDisposable 2m 37s
—Unmanaged Resources 2m 48s
—Using IDisposable 1m 46s
—Demo 1 (part 1): Using and Disposing SqlConnection 2m 7s
—Demo 1 (part 2): Not Disposing SqlConnection 4m 3s
—SqlConnection and IDisposable 1m 52s
—Best Practice #1 3m 56s
—Demo 2 (part 1): Demo Solution Walkthrough 4m 21s
—Demo 2 (part 2): Demo Solution Failing 3m 26s
—Module Summary 1m 45sWhat Happens When the Garbage Collector Runs?- 43m 27s
—Introducing the Garbage Collector 3m 12s
—GC Generations 2m 33s
—When Does the GC Collect? 2m 20s
—Demo 1 (part 1): Profiling Memory Usage 3m 51s
—Demo 1 (part 2): Memory Usage When not Disposing 3m 44s
—The GC in Practice 4m 33s
—Demo 2 (part 1): Implementing IDisposable 3m 3s
—Demo 2 (part 2): Memory Usage When Disposing 2m 31s
—Best Practice #2 and #3 2m 56s
—Dispose and Finalize 2m 5s
—Demo 3 (part 1): Overriding Dispose 2m 26s
—Demo 3 (part 2): Finalizing Unmanaged Resources 3m 52s
—IDisposable and Inheritance 1m 58s
—Best Practice #4 and #5 2m 2s
—Module Summary 2m 13sWhat Happens if You Don't Dispose?- 41m 5sCourse Summary- 10m 27s