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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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?