You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning CS8632 The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. WorkerService1 JokeService.cs 27
// The API returns an array with a single entry. Joke[]? jokes = await _httpClient.GetFromJsonAsync<Joke[]>(
JokeApiUrl, _options);
also on Joke? joke = jokes?[0];
Removing the ? corrected the issue per the VS fix it recommendation.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: ed148088-4550-2788-0756-390eab15e3f6
Version Independent ID: 64d5cdf8-e50f-0c89-7f16-82645ba6383e