5924117973
Former-commit-id: f4d318e4b2f128fa9f4d31b37bb3839a3fc0dfb2
15 lines
269 B
C#
15 lines
269 B
C#
using System;
|
|
using Mono.Cecil;
|
|
|
|
public class Utils
|
|
{
|
|
public static bool IsManagedAssembly (string fileName)
|
|
{
|
|
try {
|
|
ModuleDefinition module = ModuleDefinition.ReadModule (fileName);
|
|
return true;
|
|
} catch (BadImageFormatException) {
|
|
return false;
|
|
}
|
|
}
|
|
} |