APG.CodeHelper.UI.ApplicationAboutDialog.AssemblyDescription C# (CSharp) 메소드

AssemblyDescription() 공개 정적인 메소드

public static AssemblyDescription ( Assembly assembly ) : string
assembly Assembly
리턴 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;
        }