In the array object in C #, you can use the reverse () method to reverse the element order in the array. The reverse () method is a static method, so as a parameter, the array elements that need to be reversed are passed to the reverse () method.
Reference from http://blog.csdn.net/dql1982/archive/2007/12/04/1916559.aspx
The initial values of static field variables of the class correspond to a sequence of values, which are executed in the order of the text they appear in the relevant
From: http://www.yoda.arachsys.com/csharp/singleton.html
The Singleton pattern is one of the best-known patterns in software engineering. essential, a singleton is a class which only allows a single instance of itself to be created, and
1. Apart from static data members, data members cannot be explicitly initialized in the class body.
For example:Class first {Int Memi = 0; // ErrorDouble memd = 0.0; // Error};
Class data members are initialized through the class constructor.
I. Volatile usage
You can declare a member function as volatile. If the value of a class object may be modified in a way that the compiler cannot control or detect, for example: if it is a data structure that represents the I/O port, it is
Generic is a new feature of. net2.0.
1. A major advantage of generics is performance. Before using the generic type, if you use the collection class for the value type, you must bind the value type to the reference type and add it to the set. When
Problem description
C #2.0 has an anonymous method, which saves us some maintenanceCodeYou do not need to think about the proper name for a method. in some FCL methods, a delegate parameter is required, such as control. invoke or control.
ArticleDirectory
Directory
1. Use the naming method
2. Use the anonymous method
3. Use lambda expressions
Summary
Content source
Directory
Lambda expressions
Expression Tree
Keyword variable VAR, object and
Get the current process of the system and add it to ListBox:System. Diagnostics. Process [] processoncomputer = system. Diagnostics. process. getprocesses ();Foreach (system. Diagnostics. Process P in processoncomputer){This. listbox1.items. Add (P.
You have prepared to write it yourself.AlgorithmAnd study the lunar calendar rules. I found that it was too difficult and troublesome. Just for the calculation of the lunar calendar, I will wait for the people who specialize in calendar to
C # learning notes-type reflection,Late StageBinding, process, and object context
Luo chaohui (http://www.cnblogs.com/kesalin)
C # And. Net advancedProgramDesign Reading Notes
Reflection (reflection)
1. The Assembly metadata can not only
Use hook in C #
Hook is a platform for Windows message processing.ProgramYou can set a child program to monitor a message in a specified window, And the monitored window can be created by other processes. When a message arrives, process it before
1. Magic VaR
Added a variable declaration VaR in C #3.0, which is similar to the Javascript var, but also different.1. similarities. It can be used to declare any type of local variables.2. The difference is that it only tells the compiler that
Function: Remove USB device safely
1. Get the device handle
Use the Windows API to enumerate all disks, including floppy disks, CDs, or other devices, based on the volume drive type and DOS device name.
//---------------------------------------
I still do not have good knowledge of some basic knowledge. I will summarize the small problems I encountered during programming, which will also facilitate the future review of my knowledge blind spots.
Differences between virtual and
// Solution-advantage: only the C standard library is used; disadvantage: only seconds are allowed# Include # Include Int main (void){Time_t t = time (0 );Char TMP [64];Strftime (TMP, sizeof (TMP), "% Y/% m/% d % x % A % j day % Z this year",
C # understands the functions of interfaces in C # development. interfaces are very important and useful. However, many people do not know how to use interfaces and how to use them. Let's take a look at the functions of the interface and how to use
C # One of the delegate usage
Chang jianzhao
A while ago I discussed how to call another winform method in a winform. The best way to do this is to use delegate. Some friends also mentioned in the reply, google has sent a message, so I am sorry for
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