开发者

What interfaces are implemented by a class?

I think it is a simple stuff, but I cannot find it.

Are there any easy way to know what interfaces a class implements? Directly or in its ancestor classes.

I have Visual Studio 2010 Pro without commercial 开发者_开发问答addons.

Thanks.


Another way is to open Class View window (menu View -> Class View) and see it in a graphical representation under Base Types:

What interfaces are implemented by a class?

Also, make sure you've installed Productivity Power Tools because it allows you to see base / derived types, references, etc. through very handy interactive tool tips:

What interfaces are implemented by a class?


Not exactly what you asked, but you can press F12 on a class name (right click -> Go to definition) and then just look at the class Foo : IBar line.


You can see this in the Object Browser (under the "Base Types" folder). You will need to have the "Show Base Types" option checked though:

What interfaces are implemented by a class?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜