5
C++ has scope_exit for running code at scope exit. C# says "We have scope_exit at home." - The Old New Thing
(devblogs.microsoft.com)
A community about the C# programming language
Getting started
Useful resources
IDEs and code editors
Tools
Rules
Related communities
I wonder if it's similar to the reason why i find it ok to work in, it's feels similar to a python just with brackets and static types. A lot of the bothersome work is hidden from you, at least with .NET.
One does get annoying things, and a lot of "you should just know to do this" for things you don't really understand or encounter naturally, but that's also something in other languages.