Don't miss my upcoming "Pragmatic Architecture for ASP.NET Core" workshop coming November 11th:
https://shawnl.ink/arch-workshop
Recently I noticed some developers seem to be confused about the relationship between the Garbage Collector and the IDisposable interface. For good measure, I show you how value types vs. reference types work too!
00:00 Introduction
01:19 The Project
01:52 Memory and GC
03:53 Adding IDisposable
05:52 Using a Using Statement
06:31 Using the Dispose Pattern
07:35 To Finalize or Not
12:16 What about Records?
12:32 And Structs?
13:07 Finally, record struct
13:27 Wrapping Up
For more information about my training and coaching, visit:
https://wildermuth.com
If you like this video, you might like other videos in my Instructional Videos:
• Instructional Videos
Смотрите видео Coding Shorts 110: Garbage Collector and IDisposable онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Shawn Wildermuth 18 Октябрь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,81 раз и оно понравилось 29 людям.