I have an interface similar to this:
public interface InterfaceA<T>
{
T Exemplo();
}
And other classes implement it.
public class ExemploA : InterfaceA<Int32>
{
Int32 Exemplo();
}
public class ExemploB : InterfaceA<String>
{
String Exemplo();
}
Searching I found this in SOen, but I can not get the type
of the interface without generics
.
var type = typeof(InterfaceA); //erro
Does anyone know how to get type
of classes ExemploA
, ExemploB
, searching for InterfaceA
, within a certain assembly
?