public static string AssemblyCompany(Assembly assembly)
{
// Get all Company attributes on this assembly
object[] attributes = assembly.GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
// If there aren't any Company attributes, return an empty string
if (attributes.Length == 0)
return "";
// If there is a Company attribute, return its value
return ((AssemblyCompanyAttribute)attributes[0]).Company;
}