Cpying Dictionary to Array

L

Luigi

Hi all,
having a Dictionary like this:

Dictionary<string, string[]>

how can a get an array passing the string key to this dictionary?
I'm using C# 2.0.

Thanks in advance.
 
A

Alberto Poblacion

Luigi said:
having a Dictionary like this:

Dictionary<string, string[]>

how can a get an array passing the string key to this dictionary?
I'm using C# 2.0.

Like this:

string[] result = myDictionary[key];
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top