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<>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top