Browse by Tags

Tagged Content List
  • Blog Post: Continuing to an outer loop

    When you have a nested loop, sometimes you want to “continue” the outer loop, not the inner loop. For example, here we have a sequence of criteria and a sequence of items, and we wish to determine if there is any item which matches every criterion: match = null; foreach(var item in items) { foreach...
  • Blog Post: Loops are gotos

    Here's an interesting question I got the other day: We are writing code to translate old mainframe business report generation code written in a BASIC-like language to C#. The original language allows "goto" branching from outside of a loop to the interior of a loop, but C# only allows branching...
Page 1 of 1 (2 items)