/*
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
I recently made a secondary development of U800 phones. I needed to call the C function library of the manufacturer to call the phone. Later I wanted to add the call recording function. However, I found that the WAV file produced by the program is
For details about Castle development, refer to the Castle Development Series by instructor Li huijun, which contains the ActiveRecord learning practices series and the Castle IOC container series. It is a good tutorial.
The following describes the
Taste programming is not simply based on the knowledge in books, but summarized in the practical development process. There may be multiple methods for a problem, however, no matter which method you use, remember that you must consider the Code's
There was nothing to worry about, and I wrote an example of converting numbers into RMB capital. The main difficulty is that "0" is in different locations and the processing method is different.
Here, we consider a general number with an integer of
Preface
I have been training at the company for the past few days, and I have some basic knowledge. At the same time, I also took this opportunity to consolidate my own infrastructure. The foundation is too important. I have been looking at
C # language used
If you retrieve data from the background, you don't need to talk nonsense. First, let's look at the serialized json data.ObjectToJSON (JavaScriptSerializer jss = Exception (++} serialization method Int32 RoleID {; RoleName {;
C # delegation and event Introduction
Delegation and events are widely used in. Net Framework. However, it is not easy for many people who have been in contact with C # for a long time to better understand delegation and events. They are like a
* This Article is not original to the blogger. The original author's article link is not saved in the favorites folder. Sorry, the copyright belongs to the original author. This document is only slightly modified.
1. Create a new C # Windows
I. Introduction
For some beginners (including those who have been working for several years), the problem of parameter passing between methods is sometimes confusing, because the basic questions for parameter passing are also frequently encountered
1. added the Microsoft. Office. Interop. Excel application.2 reference namespace using Excel = Microsoft. Office. Interop. Excel;/// /// If the supplied excel File does not exist then Create it/// /// Private void CreateExcelFile (string FileName){/
Performance Optimization Principles
·Understanding requirements
One performance requirement of MultiRow is: "smooth scrolling under millions of data lines ." This goal has been taken into account throughout the development process of the MultiRow
If it wasn't because of this project, I would never be able to access the coin reader, nor would I know what CashCode is.
From the project, to the CashCode machine to the desktop test, I found information on the Internet, and also contacted Beijing
();
dca="Dictionary
Non-static variable Main (= (I =; I dcA = Dictionary str =Static variables
Then, after the hash table is cleared, the code for non-static variables is like this.
Let me start by saying that the idea I used in this article is not originally mine, but since I have only heard of it and have not been able to find any actual examples of its implementation anywhere I wrote the code to handle it.
With that out of
Lambda Overview
Lambda expressions
The expression is passed to the delegate type.
del( i); Main([] args){ del myDelegate = x => x * x; j = myDelegate(5); }
Expression Tree Type
System.Linq.
I recently saw the Console that the instructor talked about in the C # Video. writeLine () only needs to write down cw, and then press the tab key twice. I didn't know it before, And suddenly felt very useful, so I collected some related shortcut
In projects, we often involve read and write operations on Excel, and there are also many Excel operations on the market. The following methods are commonly used:
1. COM component operation Excel read/write
2. Perform Excel read/write operations
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