APG.CodeHelper.UI.ApplicationAboutDialog.AssemblyProduct C# (CSharp) Метод

AssemblyProduct() публичный статический Метод

public static AssemblyProduct ( Assembly assembly ) : string
assembly Assembly
Результат string
        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;
        }