var asm = Assembly.Load("Some.Assembly.Name");
var nameSpace = "Some.Namespace.Name";
var classes = asm.GetTypes().Where(p =>
p.Namespace == nameSpace &&
p.Name.Contains("ClassNameFilter")
).ToList();
from : http://stackoverflow.com/questions/79693/getting-all-types-in-a-namespace-via-reflection
沒有留言:
張貼留言