I am having problems converting this method from C # to VB, it works flawlessly in C #:
private async void Test() { DataSet dt; var client = new xxxSoapClient(); dt = await client.ToDoAsync(); }
I use Async / await in VS 2012, and in C # this is all fine, but when I try to do the same in VB, it returns an error indicating that system.void is not expected !!!
Private Async Sub Test() Dim dt As DataTable Dim Client As New xxxSoapClient dt = Await Client.ToDoAsync() End Sub
The web service just returns a simple datatable, someone's ideas?
source share