Skip to content

Instantly share code, notes, and snippets.

@deanhume
Created March 15, 2018 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanhume/9e7acfcb5166282d5a0ecc57459b1fa6 to your computer and use it in GitHub Desktop.
Save deanhume/9e7acfcb5166282d5a0ecc57459b1fa6 to your computer and use it in GitHub Desktop.
WhileLoop
/// <summary>
/// Loops through the list until it
/// reaches a count of 3000.
/// </summary>
public void WhileLoop()
{
List<string\> list = new List<string>();
int x = 0;
do
{
list.Add("Test" \+ x);
x++;
} while (x < 3000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment