C# collection class like STL Map

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for a collection class that can act like map class of STL like
it provides me functionality to return nearby key e.g. I have a collection
like

1 "ABC"
2 "XYZ"
4 "sdf"

Now if I find out a nearby key to 3 it should return me

2 "XYZ"

Avnish.
 
Avnish said:
I am looking for a collection class that can act like map class of STL like
it provides me functionality to return nearby key e.g. I have a collection
like

1 "ABC"
2 "XYZ"
4 "sdf"

Now if I find out a nearby key to 3 it should return me

2 "XYZ"

Avnish.


I think NameValueCollection class is the closest you can get to STL map<>.
 
Back
Top