Post #13430 119 Jan 23, 2026, 16:52 UTC C++ has scope_exit for running code at scope exit. C# says “We have scope_exit at home.”Источник: The Old New Thing Microsoft News C++ has scope_exit for running code at scope exit. C# says “We have scope_exit at home.” You can wrap it in an IDisposable.