My app uses reflection to analyze c++/cli code in runtime.
I need to determine if a type has a constructor without unmanaged parameters (pointers and such), because i want later on to use:
ConstructorInfo constructorInfo;
// ...
var ret = constructorInfo.Invoke(BindingFlags..., null, myParameters, null);
if the constructor has a pointer to an unmanaged object as a parameter, there is a casting exception when i pass null to it.
So i how do i determine that? there is no IsManaged... and IsPointer does not help in this case.