+ 3

It is possible to make associative arrays, or maps, or dictionaries in C#?

30th Aug 2017, 5:52 AM
Javier I. Rivera R.
Javier I. Rivera R. - avatar
2 Respostas
+ 3
Thanks .. I already made an example .. Dictionary<int, string> d = new Dictionary<int, string>(); d.Add (0, "One"); d.Add (3, "Three"); d.Add (6, "Six"); d.Add (9, "Nine"); foreach (var elem in d) { Console.Write(elem.Key + " "); Console.WriteLine(elem.Value); } https://code.sololearn.com/cMHxPsCHgNVb
30th Aug 2017, 6:43 AM
Javier I. Rivera R.
Javier I. Rivera R. - avatar
+ 2
30th Aug 2017, 5:55 AM
Salekin
Salekin - avatar