jeudi 6 avril 2017

Generic class that calls interfaces methods

I'm bit new to generic classes so i'll try to be simple as i can. Need some direction for implementing class Service like in example below:

Service<IServiceA>().MethodsFromServiceA();

Service<IServiceB>().MethodsFromServiceB();

Class Service would need to receive Interface and based on that interface, should be able to call interface's methods.

Any directions would be helpfull :)

Aucun commentaire:

Enregistrer un commentaire