I'm translating a console vb app and I'm stuck here:
I'm trying every combination and it does not seem to compile:Code:Using client As New HttpClient() end using
This will work but does not implement using:Code:using (var client = new HttpClient()) { } using (client = new HttpClient()) { } using var client = new HttpClient();
Code:HttpClient client = new HttpClient();
So how does this compile?
Thanks.




Reply With Quote