-1

I get an error: CS1001 C# Identifier expected

static async Task<(bool, string)> TryGetHtml(string url)
{
  if (string.IsNullOrEmpty(url))
  {
    return (false, null);
  }
  string html = await new HttpClient().GetStringAsync(url);
  return (true, html);
}

P.S. Use (NET Framework 4.7.2)

Mihail
  • 1
  • 4

1 Answers1

-1

Check your Output window...errors sometimes "hide" in there.

Fleshy
  • 182
  • 7