Accessing an object's unparameterized type

This has been discussed numerous times - search for “strip type parameters”.

This is the most relevant result:

There may not be such a constructor. This is not safe to do in general. Reflection can only work in limited cases here. The “canonical” solution is to have similar implemented on your type.

1 Like