C# / .net framework
What is the most reliable way to determine whether a class (type) is a class provided by the .net framework and not any of my classes or 3rd party library classes.
I have tested some approaches
- The namespace, e.g. starting with “System.”
- The Codebase of the assembly, where the dll is located
All this “feels” a little clumsy though it works.
Question: What is the easiest and most reliable way to determine this?
Read the Assembly Company Attribute from the assembly
[assembly: AssemblyCompany(“Microsoft Corporation”)]
http://msdn.microsoft.com/en-us/library/y1375e30.aspx