4 ms·
Yes, C# does have goto. Ayende made a blog post [1] about some interesting uses of goto for performance reasons. Also likely for performance reasons, async/awai
by paulirwin 8y ago
Yes, C# does have goto. Ayende made a blog post [1] about some interesting uses of goto for performance reasons. Also likely for performance reasons, async/await state machines in .NET essentially use goto (br.s in CIL). VB.NET has GoTo as well.
1: https://ayende.com/blog/183553-A/using-goto-in-c https://ayende.com/blog/183553-A/using-goto-in-c