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
Zig has entered the chat.