1. Use Pascal rules to name methods and types.Public class DataGrid{Public void databind (){
}}
2. Use camel rules to name parameters of local variables and methods.Public class product{Private string _ productid;Private string _ productname;
A lot of knowledge should be recorded, and it may not be able to really understand its meaning at that time. I plan to list common knowledge points in C # Based on C #4.0.
Data Type
DividedValueType andReferenceType
If the data type stores data
Nothing in the world is more appealing to programmers than programming tools. VC, VB, Delphi, Java ...... These dazzling names not only occupy the lives of programmers, but also seem to have become a certain belief. However, with the pace of the new
Before discussing this question, let's first ask these questions to systematically understand the theme we are going to explore today.
Viewers may have used a wide variety of classes such as the system. Console class or. NET class library countless
Use VC programming to manipulate the office. You can print Word files, send data to Word documents, send e-mail, automatically generate tables, Excel data statistics, and pie charts, histogram display, automatic report generation, playback slides,
For programmers, the program standardization is very important. There is a very famous book called "C ++ programming specifications", but I have to refer to the following before:Coding Standard
Xxx coding standard
By John Huang
Objective
I saw Params today. I learned it without having used it before.
The Params keyword has the following features:
The Params keyword can be used to specify a variable number of parameters (the number of parameters is not specified ).
You can
1. printf ("% s! C is cool! \ N "," % s! C is cool! \ N ");
#include #define FORMAT "%s! C is cool!\n" int main(void) { int num=10; printf(FORMAT,FORMAT); return 0; }
The output is
% S! C is cool! ! C is cool!
Set # define format "% s! C is cool! \
The C # version limits the number of concurrent threads according to your own ideas.
Using system;Using system. Collections. Generic;Using system. text;Using system. Threading;
Namespace wzdm. Test{/// /// Specifies the number of concurrent threads./
In projects, we often encounter binding query data from a database to a Treeview. In this case, we need to convert the queried data into a tree-shaped data. Each write operation will be very repetitive, so I wrote a general conversion class.
In
In C #, you can perform logical operations on integer computing objects by bit. The meaning of logical operations by bit is that each bit of the object to be operated is obtained in sequence for logical operations. The logical operation result of
String str1 = process. getcurrentprocess (). mainmodule. filename; // obtain the file name of the currently executed exe.
String str2 = environment. currentdirectory; // gets and sets the fully qualified path of the current directory (that is, the
1. stylereg: Clear the style. For example, . replace all with null.
2. The same principle is true for scripreg and stylereg.
3. htmlreg: Enter AAA as the HTML Tag. The result is AAA.
4. htmlspacereg: HTML Space & nbsp; Replace with Space
5.
Problem description: Yesterday I had a small program that could automatically switch the desktop, which was inconvenient to use. Because every time I add a new image, I manually modify the XML file and restart the service, so I created a
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