SHARE
TWEET

Find abstract types with no abstract methods

tomlev May 31st, 2012 26 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Top