Alex Rivera | Logout

Dictionary - one key, many values

Asked 2010-01-20T11:51:15.300
71

I want to create a data store to allow me to store some data.

The first idea was to create a dictionary where you have one key with many values, so a bit like a one-to-many relationship.

I think the dictionary only has one key value.

How else could I store this information?

Edit
Report

1 Answer

1

You can have a dictionary with a collection (or any other type/class) as a value. That way you have a single key and you store the values in your collection.

answered 2010-01-20T11:54:18.353

Your Answer