Global goto labels | Sololearn: Learn to code for FREE!


Global goto labels

How can I declare a global goto label to do unconditional jumps between methods?

6/22/2020 1:46:12 AM


1 Answer

New Answer


As I understand it, labels are locally scoped (read: within functions/methods). Not sure what needs or why you want to use `goto` in a language like C#, while even in C or C++ they are not preferable except for rare occasions, and with extra care in writing, or else it can be quite messy.