File downloading in a BackgroundWorker
Currently, I can do
string strXMLfile = FileDownload("http://link/to/some/xml/file");
to download the contents of a file into a string. Is there a way to execute the file download in a BackgroundWorker and still have the method FileDownload return the contents of the requested file?