Skip to content

Instantly share code, notes, and snippets.

@KennethanCeyer
Created January 3, 2018 11:00
Show Gist options
  • Save KennethanCeyer/b877304f99e5b3155c1b47642648fe8c to your computer and use it in GitHub Desktop.
Save KennethanCeyer/b877304f99e5b3155c1b47642648fe8c to your computer and use it in GitHub Desktop.
do while with continue keyword
[HttpPost]
public void DoWhile()
{
var index = 0;
do
{
Debug.WriteLine($"{index} loop");
index++;
continue;
} while (false);
}
@KennethanCeyer
Copy link
Author

OUTPUT:

0 loop
<end>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment