In C#, what is a synchronous alternate for HttpClient.getStringAsync() method?

Viewed 11848

In a winform, clicking on a button calls this method to download link content as string and then displays string length in a textbox. This all happens asynchronously. Is there a way to do this synchronously?

3 Answers
Related