Why does TypeName() return different results from .GetType and TypeOf when working with COM?
- 阅读更多 关于 Why does TypeName() return different results from .GetType and TypeOf when working with COM?
问题 I feel like I would benefit greatly from understanding the differences in how these functions work so that I could better understand when to use each one. I'm having a very difficult time working with two different interops (Excel, and EPDM) which have both made extensive use of weak typed parameters. I keep running into problems using returned objects and casting them to the proper type (per the documentation). After wasting a ton of time, I've found that using TypeName, GetType, and a