C # 's Windows Form application and attribute

Source: Internet
Author: User
<span id="Label3"></p><p><p>1. What is wpf: the Windows Presentation Foundation, which provides a unified programming model, language, and framework that truly separates the work of interface designers and developers, WPF by XAML (extensible application Markup Language) Language Writing.</p></p><p><p></p></p><p><p>2. Windows form project is composed of several files: they have different functional divisions</p></p><p><p></p></p><p><p></p></p><p><p>3. For an application, the most important thing is to respond to the various events of the user, then the implementation of the listener is very important, and vs to the Listener's design interface, We only need to double-click the control, vs will automatically generate the default EventHandler method name, complete the Delegation.</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p><strong><span style="font-size: 18pt;">Attribute:</span></strong></p></p><p><p><span style="font-size: 15px;">1. C # provides a mechanism for defining a declaration token called an Attribute. You can place properties on some entities of the source code to specify additional Information. The information contained by a property can be retrieved at run time through Reflection. You can use predefined attributes or define your own custom Properties.<br></span></p></p><p><p></p></p><p><p><span style="font-size: 15px;">2. </span>Attributes and reflection have a intimate relationship with Assembly Metadata. Attributes is a part of this metadata, and reflection understands metadata, allowing you to extract information about ATT Ributes and Code.</p></p><p><p></p></p><p><p>3. Attribute also has a lot of uses, divided into many classes, but they are the developer set the warning or need to be aware of, such as the use of the method marked with the obsolete feature issued a warning message, and assembly can set some environment variables, etc. Attribute can also specify serialization</p></p><p><p></p></p><p><p>4. We can also define our own Attribute,attribute has no effect on the output</p></p><p><p></p></p><p><p>5. Reflection provides the capability to discover information on a program at Runtime.</p></p>1.Viewing metadata (information retrieval available for Bugs) 2.Performing type Discovery 3.Late binding to methods and properties 4.Creating type s at runtime (reflection Emit)<p><p>C # 's Windows Form application and attribute</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.