How can I generate C# source code for a COM Interop library instead of an assembly?
问题 When importing a COM library (either directly with tlbimp, or indirectly with visual studio add reference dialog,) is there a way to generate C# source code instead of a binary interop assembly, like Interop.Word.dll, for example? UPD: Reflector is bad idea. Problem is that for the com interface is not only a signature, but the order of the members. Reflector this order is violated 回答1: I would go ahead and generate the interop assembly using TLBIMP, and the use Reflector to disassemble it.