this post was submitted on 27 Jan 2026
5 points (100.0% liked)

C Sharp

1765 readers
1 users here now

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Mihies@programming.dev 2 points 3 days ago* (last edited 3 days ago)

IDisposable is not that at all. At least not implicitly. It's a convention, one has to call Dispose to do anything. Edit: I might have misunderstood scope_exit 🥹