How can I scan all assemblies located in the bin directory and retrieve all types implementing an interface?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can find them easily using Reflection and a LINQ query
AppDomain.CurrentDomain.GetAssembliesreturns aSystem.Reflection.Assembly[]collection. Then you select all Types in that Assembly and check if your interface is used by that type.http://msdn.microsoft.com/en-us/library/system.appdomain.getassemblies.aspx