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

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

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