Hey everyone I am new here and I found this site on google it looks pretty helpful and clean so I guess I am here to stay. However, I hope someone can solve my problem.
I am trying to create an ArrayList with both a URI and FileInfo (file destination) which I want to be connected to each other. I am using this for a download script and I have the ArrayList working perfect with just the URI to get the file sizes and add them up (for progress reasons).
The problem is when it gets to my Downloader.Download() method. I need the ArrayList to contain URI's but also a FileInfo object for each one so that the script may associate the URI to a download path.
Can anyone give me an example foreach() statement or point me in the right direction for sorting through the URIs and associating a FileInfo to each one WITHOUT hard coding the script?
Thanks in advance.