Currently, I am tackling a coding task in C#.NET involving an Internet Explorer extension. The challenge lies in calling Javascript within the browser and extracting the return value from the call. Handling primitive types or arrays of primitive types is manageable, however, when the Javascript returns an object, it results in obtaining an opaque COM object.
I am seeking guidance on how to access the contents of this COM object efficiently, or if there exists a more effective approach to interact with IE from C#.NET?