manski

Get all classes of an assembly

Jul 4th, 2012
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. foreach (Type type in Assembly.GetExecutingAssembly().GetTypes()) {
  2.   if (IsTestClass(type)) {
  3.     yield return type;
  4.   }
  5. }
RAW Paste Data