You can use System.Collections.HashTable if you want something similiar to
STL maps. The only difference between HashTable and maps is that HashTable
is not type specialiazed (it's map where key and value is object type) .
Next version of .Net framework support specialized HashTable via generic
(something as c++ template).
Gianluca
"Sandeep Limaye" <sa************@persistent.co.in> wrote in message
news:eS**************@tk2msftngp13.phx.gbl...
Hi,
I want to use collections (similar to maps in STL) in my C# code. I looked
up MSDN but they say that you need to inherit from the
System.Collections.Specialized.NameObjectCollectio nBase class and also
implement a lot of methods (MSDN also gives sample code for the same). Is
it really required to do all that? Can I use the collection as simply as I
can use STL maps in C++?
Thanks,
Sandeep