Anyone know of a good implementation of a MultiValueDictionary? Basically, I want something that allows multiple values per key. I want to be able to do somethi
You can easily make one from a dictionary of lists:
public class MultiValueDictionary : Dictionary> {
public void Add(Key key, Value value) {
List values;
if (!this.TryGetValue(key, out values)) {
values = new List();
this.Add(key, values);
}
values.Add(value);
}
}