Lettura dati:
public static List
GetExtraAssemblyInfo(string AssemblyName)
{
List
info = new List
();
Type t = null;
Assembly a = string.IsNullOrEmpty(AssemblyName)
? Assembly.GetEntryAssembly()
: Assembly.LoadFile(AssemblyName);
if (a != null)
t = a.EntryPoint.ReflectedType;
if (t != null)
{
object[] attr = t.Module.Assembly.GetCustomAttributes(typeof (ExtraAssemblyInfoAttribute), false);
if ((attr.Length > 0))
{
for (int i = 0; i < attr.Length; i++)
info.Add(((ExtraAssemblyInfoAttribute) attr[i]).ExtraAssemblyInfo);
}
}
return info;
}