IDisposable is IMPORTANT | CodeNameK - 12

Опубликовано: 06 Август 2026
на канале: Code with Saar
278
6

Properly dispose unmanaged resource saves us from memory leak, DB connection pool starvation, unexpected file truncation and so on. It is very important to use IDisposable correct!

Resources

Demo code: https://github.com/xiaomi7732/CodeWit...

NumberIt (CodeNameK): https://github.com/xiaomi7732/CodeWit...

Discord server for Code w/ Saar:   / discord  

Reach me on twitter @CodeWithSaar

For more videos like this:
💡Subscribe: https://www.youtube.com/c/CodewithSaa...

If you want to buy me a coffee: https://www.buymeacoffee.com/codewith... and thank you!

Chapters

00:00 Intro
00:31 Concept
04:10 The importance to properly dispose objects
06:19 Implementing IDisposable in our own class
10:07 Implement Dispose Pattern