Possible Duplicate:
Best way to check if a DLL file is a CLR assembly in C#
I have a assembly from a DLL file. I need to check whether the DLL file is originally from a .NET project or from a COM project. How can I find it using C# programmatically.
Possible Duplicate:
Best way to check if a DLL file is a CLR assembly in C#
I have a assembly from a DLL file. I need to check whether the DLL file is originally from a .NET project or from a COM project. How can I find it using C# programmatically.
Is it good enough to know if the assembly can be successfully loaded by the runtime? If so, check out this question:
Best way to check if a DLL file is a CLR assembly in C#
The problem is, as I said in my other answer, it's entirely possible that it could be both, if there's a COM wrapper for a .Net object in use. Read: Your question doesn't make sense.
It would make sense to ask: Is it native, or CLR? Or to ask: Does it support COM?