title: WebClient.DownloadFile convert to File VB.NET
body: <p>Does anyone know how to parse a Webclient.DowloadFile to File in VB.Net?
  I'm currently using the following Code but I keep getting the errors: 
  (BC30491) Expression does not produce a value. 
  (BC30311) Value of Type can not be converted to File</p>
  
  <pre><code>Private Function DepartmentDataDownloader() As String
      Dim webClient As New System.Net.WebClient
      'I get here the error BC30491
      Dim result As File = webClient.DownloadFile("https://intern.hethoutsemeer.nl/index2.php?option=com_webservices&amp;controller=csv&amp;method=hours.board.fetch&amp;key=F2mKaXYGzbjMA4V&amp;element=departments", "intern.hethoutsemeer.nl.1505213278-Departments.csv")
  
      If webClient IsNot Nothing Then
          'and here BC30311
          Dim result As File = webClient
          UploaderFromDownload(webClient)
      End If
      Return ""
  End Function
  </code></pre>