Skip to content

Instantly share code, notes, and snippets.

@nothke
Last active August 8, 2018 18:21
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 nothke/9f20f6207caf9b7ec1684e9fcd13d9e8 to your computer and use it in GitHub Desktop.
Save nothke/9f20f6207caf9b7ec1684e9fcd13d9e8 to your computer and use it in GitHub Desktop.
List<int> intList;
void Init()
{
intList = new List<int>(2); // 2 is capacity
}
void AddStuff()
{
intList.Add(1);
intList.Add(2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment