 |
c# - Breaking out of a nested loop - Stack Overflow
Goto itself isn't ugly. What is ugly is abusing goto which results in spaghetti code. Using goto to break out of nested loop is perfectyly ok. Besides, note that all break, continue and return, from structural programming point of view, are hardly better
stackoverflow.com |
 |