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

AssemblyDescription() public static method

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