Skip to content

Instantly share code, notes, and snippets.

@shassaan
Created November 3, 2020 10:12
Embed
What would you like to do?
Add data to list
List<int> primeNumbers = new List<int>();
primeNumbers.Add(1);
primeNumbers.Add(3);
primeNumbers.Add(5);
primeNumbers.Add(7);
var cities = new List<string>();
cities.Add("NewYork");
cities.Add("London");
cities.Add("Mumbai");
cities.Add("Chicago");
cities.Add(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment