R1D20 Memory Management in C#
I wrapped up the Object Oriented Programming in C# course on edX with an overiview of memory management in C#.

Like Java, .NET offers garbage collection but only for “managed” resources. This means that for unmanaged resources like files, network connections, or database connetions, you must perform the garbage collection yourself. This becomes slighly easier with the IDisposable interface, but also makes C# a bit more complex when compared to other langauges.
Looking at things like the IDisposable Interface in the .NET documentation really makes the docs shine. Not only is there detailed information about the various things related to this interface there are also a handful of different types of examples on how you can actually use this thing. It’s one of the best docs I’ve seen and is something I am going to reference and keep in mind as an example of what I wish every document would look like.
Overall I really enjoyed this course. Like the first course it was a bit on the short size, but it was one of the best overviews of Object Oriented Programming that I’ve seen in all of my learning.
Tomorrow I am going to start the last course in this introductory series to C# which is about Data Structures and Algorithms in C#. I am looking forward to wrapping this up so that I can move on to doing some neat things with ASP.NET Core.
Thank you for reading! Share your thoughts with me on bluesky, mastodon, or via email.
Check out some more stuff to read down below.
Most popular posts this month
- 2024
- Reinstalling Windows at 1am
- SQLite DB Migrations with PRAGMA user_version
- My Custom Miniflux CSS Theme
- How to Disable Wayland in Debian Testing
Recent Favorite Blog Posts
This is a collection of the last 8 posts that I bookmarked.
- The AGI economy is coming faster than you think from Freethink
- Rolling the ladder up behind us from Xe Iaso's blog
- In Praise of “Normal” Engineers from charity.wtf
- Reports of Bluesky's death have been greatly exaggerated from The Torment Nexus
- What Would a Kubernetes 2.0 Look Like from matduggan.com
- We Can Just Measure Things from Armin Ronacher's Thoughts and Writings
- workflows for ai coding from /* 🤖🛠️ */
- Reinvent the Wheel from Matthias Endler
Articles from blogs I follow around the net
in the heat of the summer better call out a plumber
Back in the old days, the good old days, when it was generally accepted that Fascism and Nazis were bad, bloggers would write these posts that were sort of recaps […]
via WIL WHEATON dot NET June 20, 2025Just one more Patreon indignity
I was today years old when I learned that Patreon offers no mechanism to download all of your own posts from your "creator" account. Because fuck you that's why. Confirmed with "support" [sic] who sent me a response with the level of ov…
via jwz June 20, 2025Pluralistic: Oregon bans the corporate practice of medicine (20 Jun 2025)
Today's links Oregon bans the corporate practice of medicine: Karma for Unitedhealthcare, Part II. Hey look at this: Delights to delectate. Object permanence: 2015, 2020 Upcoming appearances: Where to find me. Recent appearances: Where I've been. …
via Pluralistic: Daily links from Cory Doctorow June 20, 2025Generated by openring