Reputation:
Can someone tell me how to find all interfaces that a class implements by using C# reflection ?
Like find all classes that implement a specific interface
if(type.getInterface(typeof(IAuto)) != null)
{
console.writeline(type.name.tostring());
}
Upvotes: 3
Views: 137