> Thanks for the reply, in theory that looked like it would work
> unfortunatly it seems that the GetType does not work off of COM
[quoted text clipped - 12 lines]
>
> Tim
System.__ComObject is a generic wrapper, that means a RCW that does not
carry any metadata other than it's own.
The reason for this is simple, by calling Type.GetTypeFromProgID, you are
ignoring the imported metadata from the interop assembly, in order to get at
the type info you will have to cast the generic wrapper to the type
ComCollectionTest.Person.
Willy.
tschulken - 04 Mar 2008 19:54 GMT
On Mar 4, 3:49 am, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.be> wrote:
> > Thanks for the reply, in theory that looked like it would work
> > unfortunatly it seems that the GetType does not work off of COM
[quoted text clipped - 23 lines]
>
> - Show quoted text -
Thanks Willy. The problem is when i am using reflection, when I run
into the VBA.Collections I don't get the type information for the
items inside. I can get a string representation of the type name
(Information.TypeName). I was wondering if I could get the type info
using that string typename. I am writing a utility to get all of the
property values of my COM objects. When I run into objects inside the
collection, I can't get the type info to get the properties, to get
their values.
I have the references to the com dll's but there are a ton of classes
that I wanted to do all of this dynamically.
Any additional hlep would be appreciated (i.e. is there another way to
get the property values when I don't have the type info?)
Tim