First of all: I am a complete beginner.in COM.
I work as a team on a large project. Part of the server is written in C ++. The client side is written in C #. They communicate through COM.
Now - I have an IA interface in C #. And I have an o object whose type is class A (implements IA in C ++ - it is somehow transported through COM). I want to use reflection to get all the properties of this type, but it does not work properly. It returns only those properties that I used in my code.
Here is the Reflection code that retrieves the properties:
Type[] ifaces = typeof(A).GetIterfaces(); foreach (Type iface in ifaces) { foreach (PropertyInfo info in iface.GetProperties()) {
At first I thought this was not working due to COM. But it is strange that it gives me all the properties that I mention in the code. And all the material around COM should be written correctly, because it works for a long time (before I got into this project).
source share