Guest User

Untitled

a guest
Apr 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Type ti = typeof(IYourInterface);
  2. foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
  3. {
  4. foreach (Type t in asm.GetTypes())
  5. {
  6. if (ti.IsAssignableFrom(t))
  7. {
  8. // here's your type in t
  9. }
  10. }
  11. }
Add Comment
Please, Sign In to add comment