Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Type ti = typeof(IYourInterface);
- foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
- {
- foreach (Type t in asm.GetTypes())
- {
- if (ti.IsAssignableFrom(t))
- {
- // here's your type in t
- }
- }
- }
Add Comment
Please, Sign In to add comment