Skip to content

Instantly share code, notes, and snippets.

@shassaan
Created November 3, 2020 09:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
AccessDataFromArrayList
//Access individual item using indexer
int firstElement = (int) arlist[0];
string secondElement = (string) arlist[1];
//using var keyword without explicit casting
var firstElement = arlist[0];
var secondElement = arlist[1];
//update elements
arlist[0] = "Steve";
arlist[1] = 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment