Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Find abstract types with no abstract methods

By: tomlev on May 31st, 2012  |  syntax: C#  |  size: 0.25 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     var query =
  2.         from a in AppDomain.CurrentDomain.GetAssemblies()
  3.         from t in a.GetTypes()
  4.         where t.IsAbstract
  5.         && !t.IsSealed // exclude static classes
  6.         && !t.GetMethods().Any(m => m.IsAbstract)
  7.         select t;