<newbie> 2-dimmensional generic list, how?

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

..net 2.0

I'm trying to create a 2-dimmensional (sorry if i speld it wrong).

List<string, string> hello;
this code doesn't work

What I want from this is a list where each item holds 2 values. one value
specify the type of info the other value have. The field specifying the type
could be of a integer value too...

Any suggestions?

Jeff
 
Hi Jeff,

Jeff ha scritto:
okay, I've think I've solved it:
Dictionary<int, string>

Beware that you cannot have multiple keys. It means that if you need to
add two different dictionary entries with corresponding to the "2"
value, you cannot.

Bye,
Giulio

--
 

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

Back
Top