ExternalAnnotations
ExternalAnnotations copied to clipboard
Add "MeansImplicitUse" for HttpClientJsonExtensions.GetFromJsonAsync``1
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;
public class C
{
private readonly HttpClient _httpClient = new();
public async Task GetResult()
{
var response = await _httpClient.GetFromJsonAsync<MyObject>(new Uri(""));
}
private class MyObject {} // should not show warning "class is never instantiated
}