Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding all classes that implement C# interface - Similar to Java [duplicate]

Tags:

c#

Possible Duplicates:
Getting all types that implement an interface with C# 3.5
How to find what class(es) implements an interface (.Net)

Is this possible in C# like it is Java?

If I have an interface name (IDataReader for arguments sake), how do I get a list of all classes that implement this?

In java this is listed in the API - Is this available in C#

like image 837
Jack Kada Avatar asked Feb 05 '26 12:02

Jack Kada


1 Answers

If you use ReSharper, you can right click a class or method identifier and choose "Go to Inheritor" and it will bring up a list of all the implementations of the class or method.

Visual Studio doesn't have this functionality by default though. If you don't have ReSharper, you can do it by compiling your .dll's and analyzing them in Reflector.

like image 178
womp Avatar answered Feb 07 '26 01:02

womp