2010-09-18 2 views

Répondre

2

Quelque chose comme (je ne suis pas un PC)

from asm in AppDomain.CurrentDomain.GetAssemblies() 
from type in asm.GetTypes() 
where (type.IsClass || type.IsStruct) 
    && type.GetInterfaces().Any(
    intf => intf.IsGenericType 
    && intf.GetGenericTypeDefinition() == typeof(ISomeInterface<>)) 
select type; 
Questions connexes