+ 1
ToArray
How can i use (dictionary).Keys.ToArray() method in c#?
3 Answers
+ 2
https://code.sololearn.com/c9Y2nqyC69Pw/?ref=app
What do you want to do with it?
+ 2
Thank you a lot guys.
+ 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.
ĐŸĐș