How to can I find all concrete implementations of a generic interface using reflection ? Actually I have a collection of events in a List. All my events are derived from IEvent . To handle these events I have created IHandle inter face where T would be an Event and create concrete event handlers by implementing IHandler . So now I want to find out all concrete event handlers which are implemented IHandler where T is of Type IEvent . Sample .Net fiddle Link http://ift.tt/1Km0R33 I have previously tried to resolve this using Unity.Mvc but got no success .so wanted to do it using reflection .
Aucun commentaire:
Enregistrer un commentaire