Getting a little carried away with messing around in Roslyn, making my own C# syntax. This is pretty fun.
Messing around with building a PoC for some C# syntax sugar that I am considering proposing. #csharp #dotnet
346c1a9
int result = using<int>(var resource = new MyClass()) { resource.DoStuff(); return resource.ReadExitCode(); };
catch clause support.int result = using<int>(var resource = new MyClass()) { resource.DoStuff(); return resource.ReadExitCode(); } catch (Exception ex) { return -1; };
commit 346c1a9