Skip to content

Instantly share code, notes, and snippets.

@ShravanJ
Last active April 4, 2017 01:43
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 ShravanJ/55d78fda57678b2a4cf0bf74b020d41a to your computer and use it in GitHub Desktop.
Save ShravanJ/55d78fda57678b2a4cf0bf74b020d41a to your computer and use it in GitHub Desktop.
public void ClearList(List myList)
{
for(int x = myList.Count - 1; x >= 0; x--)
{
myList.RemoveAt(x);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment