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
Post a Comment