Possible Duplicate:
C#: Triggering an Event when an object is added to a Queue
I am developing a downloader program. And I want to use fifo. My queue must be dynamic. Some event handler can add an object to my list, then a certain event must run and get an item of the queue and download it. Repeating for next item, and so on.
I am not sure that I explained my aim well. I just want to use a dynamic structure. I looked into the Queue class, but it hasn't any event on an item being added. Users can add link to my queue and it will download it item by item. If a new item is added, some event must fire and downloading of it must either start or the item should be placed into the queue.
Secondly, Is there any alternative for FIFO?