PC Review


Reply
Thread Tools Rate Thread

C# collection class like STL Map

 
 
=?Utf-8?B?QXZuaXNo?=
Guest
Posts: n/a
 
      16th Feb 2005
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.
 
Reply With Quote
 
 
 
 
MuZZy
Guest
Posts: n/a
 
      16th Feb 2005
Avnish wrote:
> 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<>.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding class object to collection repeats same object through collection? Erazmus Microsoft Excel Programming 2 17th Sep 2007 04:35 AM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen Microsoft Dot NET 1 18th May 2007 10:24 AM
Can't get collection to save when using collection of custom class as property of control in VS 2005 J.Edwards Microsoft Dot NET Compact Framework 0 10th Jan 2006 04:44 AM
Class X Creates Collection of Instances of Class Y. Y's need info from X Jim Frazer Microsoft C# .NET 3 16th Jun 2004 09:17 AM
RaiseEvent from a class contained in a 2nd class collection? Andrew Microsoft Excel Programming 2 6th Jan 2004 04:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:27 AM.