public static AssemblyName GetAssemblyName(string assemblyFile)
{
if (assemblyFile == null)
{
throw new ArgumentNullException("assemblyFile");
}
string fullPathInternal = Path.GetFullPathInternal(assemblyFile);
new FileIOPermission(FileIOPermissionAccess.PathDiscovery, fullPathInternal).Demand();
return(AssemblyName.nGetFileInformation(fullPathInternal));
}