I'm not a pro on COM interop, but a COM object is not a .Net object. Unless
a COM object supports an IDispatch interface there won't be run time type
information. It doesn't have any notion of reflection. Calling GetType() on
a COM object will probalby just return some kind of managed wrapper
information. I don't know if it is smart enough to redirect calls to
IDispatch, but there isn't really a one to one relationship between
IDispatch and System::Type either.
....
"Norbert Pürringer" <th*******@graffiti.netwrote in message
news:5f**********************************@w39g2000 prb.googlegroups.com...
Hello,
I would like to read out each property of a COM object via reflection:
comObject.GetType().GetProperties()
Instead of getting a list of properties, GetProperties returns an
array of 0 PropertyInfo objects. Is reflection only possible for
normal C# objects?
Thank you,
Norbert