There are three methods to determine whether a character is a Chinese character. The first method is to use ASCII code, the second method is to use the Unicode encoding range of Chinese characters, and the third method is to use regular expressions
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
# Region
Intercept Windows messages
Protected
Override
Void
Wndproc (
Ref
Message m){
Const
Int
Http://blog.chinaunix.net/u2/82646/showart_1359552.html
Open (open a file) Related functions: read, write, fcntl, close, Link, stat, umask, unlink, and fopenHeader file # include # Include # Include Define the int open (const char * pathname, int
The indexer is a special attribute. The following is an example of the simplest indexer.
Is to find the value corresponding to the index number given the index number, similar to the attribute array
Public String This [String
I. multithreading Concept
Windows is a multitasking system. If you are using Windows 2000 or later, you can viewProgramAnd process. What is a process? When a program starts to run, it is a process that refers to the memory and system resources
5. Operator and type conversion
1. OperatorsC # Four of the supported operators (sizeof, *,->, and &) can only be used for security reasons.Code(Bypass the C # type security check ).Ternary operators (? :)Checked and unchecked operators: CLR
The discussion on tea, xtea, and xxtea on the Internet is very enthusiastic, and the implementation of PHP, JSP, ASP, and C # is provided.
TeaAlgorithmIt is famous for its speed. Compared with C, the implementation of C is short.
Here is the
1. Fictitious Function Definition
A destructor is a special user-defined member function. When an object of this class leaves its domain or delete expression and is applied to the pointer of an object of this class, the Destructor is
Indexer is a new type of class member introduced by C #. It allows objects in the class to be referenced as conveniently and intuitively as arrays. The indexer is very similar to an attribute, but the indexer can have a parameter list and can only
Method 1: Disable USB by modifying the Registry
Principle:You only need to change the start value in the HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ usbstor path to 4 to disable USB (3 by default ).
Advantages:Easy to use.
String segmentation
We often encounter the problem of string segmentation. When making a player later, we can use the method we learned to separate the lyrics.
Next let's take a look at the string [] Split (Params char [] separator): splits the
Let's take a look at my WebService method:
1 [Webmethod] 2 Public Arraylist getouterlinkimage ( String Storeid) 3 { 4 Arraylist arr = New Arraylist (); 5 List String > STRs = New List String > (); 6 STRs. Add ( " AA " ); 7 STRs. Add ( "
C # Regular Expression
Only numbers are allowed: "^ [0-9] * $ ".Only n digits can be entered: "^ \ D {n} $ ".You can only enter at least N digits: "^ \ D {n,} $ ".Only M ~ can be input ~ N-digit :. "^ \ D {m, n} $"Only numbers starting with
C #/Delegate and event in. net
--------------------------------------------------------------------------------
DirectoryTranslator's words
Overview
Delegate)
Call the method directly-without DelegationThe most basic delegateCall static
3. Implement a generic class
A reasonable way to implement a new function is to build on the original thing. We already know about strong type sets and know that a good technique for building generic classes is to use a specific class and delete
C # Study Notes-LINQ
Luo chaohui (http://www.cnblogs.com/kesalin)
C # And. Net advancedProgramDesign Reading Notes
1. The intention of LINQ (Language-level integrated query) is to provide a unified and symmetric way for programmers to
Previous: multithreading: C # thread synchronization lock, monitor, mutex, synchronization event and wait handle (on)
This article continues to introduce the waithandler class and its sub-classes mutex, manualresetevent, and autoresetevent usage ..
Recently, a project has a page that needs to be imported into an excel file and then updated the data in the database. I never remember how to import or export an excel file, in fact, there is nothing to remember (normally, recording macros are used
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