#452 – Object Browser Shows You the Interfaces that a Class Implements

In Visual Studio, you can see which interfaces a particular class implements by using the Object Browser.

Open the Object Browser window by selecting Object Browser under the View menu.

Once the Object Browser appears, you can navigate to the class that you want information on.  In the example below, we can see that the Cow class derives from Object and implements both IMoo and IStrangeCowBehavior.

We can’t tell from this view, however, which interfaces are implemented explicitly, i.e. requiring an interface-typed variable to access the methods.

You can click on the class itself to see all of the members of the class, including public and private members.

You can see all members.  Members in implicitly implemented interfaces (e.g. IMoo) show up as public members.  Members of explicitly implemented interfaces (e.g. IStrangeCowBehavior) show up as private.

You can also click on the interfaces to see members of each interface.


About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: