Check if an object is a Dictionary of any type
I'm trying to type-check a method parameter using
How can I check for all types of
Or am I wasting my time here, since the language has type-checking anyway?
if (dict.GetType() == typeof(Dictionary)).How can I check for all types of
Dictionary without having to write them all out.Or am I wasting my time here, since the language has type-checking anyway?