C # Basics

Source: Internet
Author: User

One week review:

Three primary Colors
Nature: Red, green and yellow
Self-calculation: red, green and blue

Hash value: The number of cases is fixed and the values corresponding to each case are fixed, and the values are different from each other

Enumerations: Defining types of hash values

modifier enum enum Name
{
Hash value
}

The Partial keyword-decorated class is called a partial class, indicating that the resource defined in the class is only a subset of the class's resources, and that other resources are in another or more partial classes

A form is essentially a class, and the From class is the parent class for all forms

Code Back (Code-behind)
1. Designer and Background code separation
2. Separation of custom code and automatic code using the technology of some classes

All controls have a Name property that represents the object name of the control
All controls are essentially classes, and their ultimate parent class is control

Name attribute naming specification: prefix + word

TextBox prefix: TXT
Label prefix: LBL
Button prefix: btn

1. How to get the current time of the string txttext.text=datetime.nex.tostring ();

2. When to execute code

Event: Indicates that something happened to an object, and he indicates the point in time at which the event occurred
Registering an event that requires the specified method to be run when an event occurs

Typically: The first object parameter of an event represents the event source, which refers to the object that raised the event

Paint event: The visible state of the control and the size change are occurring

C # Basics

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.