APG.CodeHelper.UI.ApplicationAboutDialog.AssemblyCompany C# (CSharp) Method

AssemblyCompany() public static method

public static AssemblyCompany ( Assembly assembly ) : string
assembly Assembly
return 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;
        }