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

AssemblyCopyright() public static method

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