Hi all,
I want to check if a generic variable is of a certain type but don't want to check the generic part.
Let's say I have a variable of List<int>
and another of List<double>
. I just want to check if it is of type List<>
if(variable is List) {}
And not
if (variable is List<int> || variable is List<double>) {}
is this possible?
Thanks