G
Guest
Hi,
I'm looking for a generic version of a map container that acts similar like
the multimap known from C++ / STL .
<code>
Dictionary<string, myobject> map = new Dictionary<string, myobject>();
map.Add("CATEGORY1", new myobject());
map.Add("CATEGORY1", new myobject(); // <-- this is not possible here,
// because the Net 2.0 Dictionary
only supports
// unique keys.
</code>
It should support multiple objects per key.
Does anybody have a good solution / code for this ? And by the way, I heard
of STLNET ? But as I understood, this is only for C++ available ? Or does
this work under C# ( I found no documentation abaout this so far).
Thanks,
Florian
I'm looking for a generic version of a map container that acts similar like
the multimap known from C++ / STL .
<code>
Dictionary<string, myobject> map = new Dictionary<string, myobject>();
map.Add("CATEGORY1", new myobject());
map.Add("CATEGORY1", new myobject(); // <-- this is not possible here,
// because the Net 2.0 Dictionary
only supports
// unique keys.
</code>
It should support multiple objects per key.
Does anybody have a good solution / code for this ? And by the way, I heard
of STLNET ? But as I understood, this is only for C++ available ? Or does
this work under C# ( I found no documentation abaout this so far).
Thanks,
Florian