/*
Author: Jiangong SUN
*/
1. Duplicated code
Extract method or Extract class
2. Long method
Extract method, replace temp variable by query, Parameter object (DTO), Replace method by method object,
3. Large class
Extract class, extract
Yesterday I wrote a code, followed by a tutorial, and then the miraculous discovery made it impossible to compile and pass the code, and it was unable to embed the interoperability type. At that time, I went crazy, the solution is as follows:
1. What is generic?
Generic is a feature of programming languages. Allow programmers to write in strongly typed programming languages
Some variable parts are defined in the Code, which must be specified before use. Different programming languages
Include
Main (){Int I;Char * suffix [] = {"st", "nd", "rd "};Char * item [] = {"Unix", "cat", "sed", "awk", "grep", "ed", "vi "}; Printf ("In the beginning, there was nothing. \ n ");For (I = 0; I Printf ("And on the % d % s day, God created % s.
Let's talk about the data type in C #. The value type and reference type.
Value Type: directly store data values and store them in the memory stack.
Reference Type: stores the reference of the Peer value, which actually stores a memory address. the
We usually use the formatting data output method provided by the Console class. Is there any other method in C # That can be used? The answer is yes. The formatting method of the String class can also have the same function. The String class
A delegate is a class that defines the type of a method so that the method can be passed as a parameter of another method. An event is a special delegate.
1. Delegate statement
(1). delegate
Delegate is a common declaration.
Delegate has at least 0
I. Problem Description
Today, I saw such a problem in the MSDN forum and thought it was very hard to train my thinking skills. So I recorded it as a backup. The requirements for the questions are as follows:
Assume that there is a string array {"0"
Introduction to e.net (1)-Word Segmentation
Getting started with e.net (2)-creating Indexes
Getting started with e.net (3)-full-text search
You need to write an index before you can perform full-text search using e.net. Next we will look at how
Recently, some user settings need to be recorded in the registry to facilitate reading the settings at the next startup of the program. The settings saved by the last user are quite simple.
It is easy to remember and will be used later. You can
Using System;Using System. Collections. Generic;Using System. Linq;Using System. Text;Using System. Threading;Using System. Runtime. Remoting. Messaging;
Namespace asynchronous Delegation{/// /// Indicates that a new thread will be generated during
Several of my friends who used the previous development framework used it in the project also gave me valuable comments. Although there have been no updates recently, I have made some suggestions for my friends, I have carefully reviewed and made
The data transmitted by Webservice can only be serialized data, typically xml data.
// /// return downstream data using the user name and password /// /// User name // / password // [WebMethod] public XmlDataDocument GetUpMassageDate
/// Decompress the file (without a password) RAR compression program returns the number of extracted files /// /// decompress to the directory /// compressed file path public static int RARToFileEmail (string destPath, string rarfilePath) {try {
Using a linxuanchen document 《C # implement conversion and inverse conversion of arbitrary encoding of integer data wordsIs used to compress the hexadecimal string with a 62-digit string. The conversion process is mainly based on the original author.
If the attribute is a string, int, or other class, the attribute is modified during design and saved during runtime.
If the property is a control, such as Label, the property is changed during design and restored during runtime, you can
As an analysis technology, regular expressions can be used in many places, and most basic expressions may be used by everyone. Here, we will explain the regular expression through a series of simple examples. How to analyze the required data for a
Back to directory
I have mentioned earlier articles about interceptor and the second back-to-Cache interceptor. In fact, the most mentioned here is the AOP and cache components. I have no detailed description of the interception concept, this talk,
Everyone is familiar with Enum enumeration. However, when enumeration is used in many scenarios, can we abstract a common solution. Everyone writes the code, but not everyone likes to write repeated code. Do you always use Ctrl + C or Ctrl + V to
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