Compilation error with nullable parameter in Razor markup
I declared a Razor page with an optional parameter: [Parameter] public KeyValuePair<string, T>? Value { get; set; } Which I use in the Razor page markup: @if (Value != null && item.Key == Value.Key) { <span> ….. </span> } Visual Studio complains with the nullable type declared with "?" (if I remove the "?", there’s… Read More Compilation error with nullable parameter in Razor markup