So in the page I have:
@typeparam TItem;
with my partial class declared:
public partial class MultipleDropdown<TItem>
{
[Parameter]
public TItem AssignedValues { get; set; }
......
Now I thought that I’d simply be able to do :
if (typeof(AssignedValues) == typeof(Dictionary<int,string>)) { ......
but VS red lines the AssignedValues with the type of namespace AssignedValues could not be found. How can I test the type of object that has been passed?