Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello friends ,

i want to finds all classes that implements same interface,
and executes methods within that class.

Explanation:

1) add solution in vs 2010
2) add class library project ,with in that add one interface say "IClass"
3) add 2 different project(say project1,project2) in the solution, each one contain one class that implements "IClass" interface.
4) Important note no reference of these 2 project will be added to our mvc project which will be added in next step.

5) add MVC Project and write code that find all the classes from solution which implements "IClass" interface and execute methods within that

Note:
(only Reference of Interface project is given to each project)

thanks in advance
Posted

1 solution

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
 
Share this answer
 
Comments
Ganesh Nikam 24-Dec-12 0:12am    
can you give any idea or some hint to do that?
Ganesh Nikam 24-Dec-12 0:29am    
i used reflection for it but what about WCF Service if I used service reference instead of class library project

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900