ClrPlus.Core.Extensions.AssemblyExtensions.Description C# (CSharp) Méthode

Description() public static méthode

Extracts the Description of the assembly (DescriptionAttribute)
public static Description ( this assembly ) : string
assembly this The assembly.
Résultat string
        public static string Description(this Assembly assembly)
        {
            try {
                return ((AssemblyDescriptionAttribute)Attribute.GetCustomAttribute(assembly, typeof (AssemblyDescriptionAttribute))).Description;
            } catch {
            }
            return string.Empty;
        }