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