I have added a reference to my project that created an interop for a C++
assembly.
I am using reflection to execute methods and properties in the referenced
assembly. This is working well, but for documentation purposes, I need to
determine what the underlying types are in the assembly.
For example, with an assembly, if I can determine a return type or parameter
type is 'System.string' through reflection, I need to be able to determine
what the underlying type is (such as 'BSTR').
Can anyone tell me if this data is available through reflection or another
means? There must be a mapping stored somewhere with the interop. Any help
is much appreciated!!
Mattias Sj?gren - 13 Dec 2004 20:22 GMT
>Can anyone tell me if this data is available through reflection or another
>means?
In v1.x of the framework, the marshaling metadata is only available
with the unmanaged COM based metadata APIs, not through Reflection.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.