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:
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:
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:
精彩评论