-1

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.

Community
  • 1
  • 1
Uma Shankar Subramani
  • 1,925
  • 2
  • 12
  • 12

1 Answers1

0

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?

Community
  • 1
  • 1
Lynn Crumbling
  • 12,985
  • 8
  • 57
  • 95