I
Ingo Nolden
Hi,
I want to call the constructor of a managed class by reflection.
This is not problem so far. I have the instance of ConstructorInfo, that
belongs to the constructor I want to call. But the Argument is an
unmanaged pointer. ConstructorInfo::Invoke however accepts only an array
of managed objects.
If the Arg were a ValueType I could easily __box it, but what can I do
with a pointer to an unmanaged type?
thanks
Ingo
I want to call the constructor of a managed class by reflection.
This is not problem so far. I have the instance of ConstructorInfo, that
belongs to the constructor I want to call. But the Argument is an
unmanaged pointer. ConstructorInfo::Invoke however accepts only an array
of managed objects.
If the Arg were a ValueType I could easily __box it, but what can I do
with a pointer to an unmanaged type?
thanks
Ingo