Best collection for
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Best collection for

  1. #1
    Join Date
    Oct 2010

    Best collection for

    Hi all, im working on a message queue system. I wish to send events (A custom class not a c# event) in bulk to several applications in turn as new events come in. I want to take all the Outbound objects in the list/queue that have the address/identefier of the application they are destined for, pack them up in a bundle and ship them off. Im used to JAVA Vector<datatype> which made it easy to filter through quite easily. I dont have that in C#, could anyone please suggest which collection class would be best for this purpose. part of the problem is ide want to use the ID as a key, but i cant find the collection type that allows for indexing with multiple entrys with the same key.

  2. #2
    Join Date
    Jun 2008

    Re: Best collection for

    Not sure I quite understand. Java's Vector class is analogous to C#'s List<T> class. They both act like dynamic arrays that provide random access. They don't use keys for accessing elements, though you mention using keys in your post.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center