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

C Sharp

1801 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 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Mihies@programming.dev 1 points 5 months ago* (last edited 5 months 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 🥹