CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2010
    Posts
    10

    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.
    Thanks,
    John

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    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.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width