Visual Studio Code – Get rid of "Nullable" warnings
I have the following code: var keyValuePairs = JsonSerializer.Deserialize<Dictionary<string, object>>(jsonbytes); var claims = keyValuePairs.Select(kvp => new Claim(kvp.Key, kvp.Value.ToString())); As you can see my ide shows me a Nullable warning. I know that I have to check if a variable is…