Copyright









How do I use Copyright
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: frmAbout.cs Copy
13         public frmAbout()
14         {
15             InitializeComponent();
16             this.Text = String.Format("About {0}", AssemblyTitle);
17             this.labelProductName.Text = AssemblyProduct;
18             this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
19             this.labelCopyright.Text = AssemblyCopyright;
20             this.labelCompanyName.Text = AssemblyCompany;
21             this.textBoxDescription.Text = AssemblyDescription;
22         }
File name: frmAbout.cs Copy
78         {
79             get
80             {
81                 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
82                 if (attributes.Length == 0)
83                 {
84                     return "";
85                 }
86                 return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
87             }
88         }

Copyright 106 lượt xem

Gõ tìm kiếm nhanh...