Skip to content

Instantly share code, notes, and snippets.

@snippe
Created December 7, 2014 04:25
Show Gist options
  • Save snippe/2e66d1249a25ab8c7d6c to your computer and use it in GitHub Desktop.
Save snippe/2e66d1249a25ab8c7d6c to your computer and use it in GitHub Desktop.
//.NET 1.0
ArrayList list = new ArrayList();
list.Add(i);
int j = (int)list[0];
//With Generics
List<int> list = new List<int>();
list.Add(i);
int j = list[0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment