c# - How to test whether or not a given type is a static class? -


var types=from m in system.reflection.assembly.load("system").gettypes()                   m.isclass                   // check whether or not type static class.                   select m; 

i want fillter out static class result.

var types = m in system.reflection.assembly.load("system").gettypes()             m.isclass && m.isabstract && m.issealed             select m; 

from this thread.

edit: check m.issealed


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -