Dynamic Object Intellisense

后端 未结 3 621
礼貌的吻别
礼貌的吻别 2020-12-22 00:22

If dynamic resolves to object at compile time, and all .NET types extend object, why does dynamic not act like an object with regards to IntelliSense? Whenever I use dynamic

3条回答
  •  悲哀的现实
    2020-12-22 01:16

    I would suspect it doesn't provide these members because there could be an arbitrary number of overloads to any of the methods on object - which it obviously can't know of at intellisense time. So it could be displaying the wrong intellisense information for a particular method invocation.

提交回复
热议问题