using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
MultiMap<string> m1 = new MultiMap<string>();
m1.Add("humans", "john");
foreach(var key in m1.Keys)
Console.Write("Key = " + key + " => Values = " );
foreach(var v in m1[key])
private Dictionary<string, List<V>> _map = new Dictionary<string, List<V>>();
public void Add(string key, V val)
if(this._map.TryGetValue(key, out list))
this._map.Add(key, list);
public IEnumerable<string> Keys
get { return this._map.Keys; }
public List<V> this[string key]
if(!this._map.TryGetValue(key, out list))
this._map.Add(key, list);