static bool IsStrongNamed (Assembly assembly)
{
if (assembly == null)
return false;
object[] attrs = assembly.GetCustomAttributes (true);
foreach (object o in attrs) {
if (o is AssemblyKeyFileAttribute)
return true;
else if (o is AssemblyKeyNameAttribute)
return true;
}
return false;
}
#endif