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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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