문제

I have a collection of assemblies using reflection. I want to loop through them, but I would like to ignore the .NET framework or ASP.NET framework DLL's. Is there an attribute on the assembly that marks that its from the .NET framework? Or any other designation?

I was looking at the name, and if the name of the assembly starts with System, Microsoft, or mscorlib, I am ignoring it. But I was wondering if there is a flag I can use to make this even easier?

도움이 되었습니까?

해결책

You might find this answer to a related question useful

다른 팁

Does the "GlobalAssemblyCache" property qualify for your requirement? http://msdn.microsoft.com/en-us/library/system.reflection.assembly.globalassemblycache.aspx

Propably also depends on how you are loading your assemblies collection. If the above mentioned suggestion doesn't work for you, please clarify that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top