tags:

views:

98

answers:

3

What is the easiest way to tell if .NET compiled code is using p/invoke?

+2  A: 

Try using Reflector if the code isn't obfuscated to view what's going on in the .dll.

Achilles
Unless you're trying to do it programmatically.
Paulo Santos
+6  A: 

Use reflection and look for any methods with the [DllImport] attribute.

Otávio Décio
+3  A: 

I am quite sure the Mono migration analyzer (MoMA) can do this.

Daniel Brückner