Jekke,

The first way that comes to mind is something like

bool isExe = yourAsm.Location.EndsWith(".exe",
StringComparison.InvariantCultureIgnoreCase);

Now that will of course not work if the file for some reason has been
renamed. A more robust way would be to check the PE file headers.


Mattias

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to