+ 1

ToArray

How can i use (dictionary).Keys.ToArray() method in c#?

24th Dec 2020, 12:07 PM
Mohammad Reza Moravejolahkami
Mohammad Reza Moravejolahkami - avatar
3 Respostas
+ 2
https://code.sololearn.com/c9Y2nqyC69Pw/?ref=app What do you want to do with it?
24th Dec 2020, 6:54 PM
sneeze
sneeze - avatar
+ 2
Thank you a lot guys.
24th Dec 2020, 7:09 PM
Mohammad Reza Moravejolahkami
Mohammad Reza Moravejolahkami - avatar
+ 1
Like that: foreach(string key in dict) { Console.WriteLine("Key is " + key); Console.WriteLine("And value is " + dict[key]); } Where 'dict' — name of dictionary. ок
24th Dec 2020, 3:03 PM
#808080 FOX 〔HOUND〕
#808080 FOX 〔HOUND〕 - avatar