October 24th, 2010, 12:27 PM
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.
October 24th, 2010, 01:43 PM
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
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!