Within a Visual Studio 2008 Add-In, how can I tell which interfaces a class' property implements?

Posted by Tim Stewart on Stack Overflow See other posts from Stack Overflow or by Tim Stewart
Published on 2010-04-15T17:42:04Z Indexed on 2010/04/15 17:43 UTC
Read the original article Hit count: 247

In a Visual Studio Add-In, I'm enumerating over the members of a class in the current source file. When I encounter a property (e.g. CodeElement.Kind == vsCMElement.vsCMElementProperty) I cast that CodeElement to a CodeProperty and I can see the property's name and type.

What I'm having a problem with is getting a list of the property's implemented interfaces. I'm wondering if this is because the implemented interfaces might be in assemblies that Visual Studio doesn't "know" about.

Is there a way to get the list of interfaces that a property implements?

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2008