Dump Object for ComObject using dynamic?
问题 I'm trying (without luck) to implement an "Object Dumper" for objects I'm accessing in the Office Type Library. It must be possibly, because VS's debug window has a "dynamic view" for the System.__ComObject objects that effectively does what I want. Any ideas? 回答1: I have also created a method for getting an interface that can be used for accessing the object. Use: using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; You have to have an IDispatch interface in