Generic collections in C#
Forums:
//List of integer
var intList = new List<int>();
intList.Add(5);
//Dictionary
var dic = new Dictionary<int, string>();
dic[1] = "one";
//Set
var set = new HashSet<double>();
set.Add(3.14);
- Log in to post comments