I:
Ii. Code
Using System; using System. collections. generic; using System. componentModel; using System. data; using System. drawing; using System. linq; using System. text; using System. windows. forms; using Microsoft. visualBasic; namespace
Author: Wang Xuan Yi, source: http://www.cnblogs.com/neverdie/Reprinted, Please keep this statement. If you like this article, click [recommendation ]. Thank you!
Introduction
The last Time we talked about GameObject, Compoent, Time, Input,
Generally, when writing a method, the first step is to perform parameter verification, which also reflects the attention and care of the coders. However, in many cases, this process is boring and tedious, for example, when an API design document is
1. for complex systems, the code structure is clearly layered to facilitate developers to understand and grasp the system as a whole. If the code is not hierarchical, the code that writes the logic in a method is like a document without a directory.
ASP. net mvc Extension Method and chain ProgrammingPreface
There is no other purpose, that is, to introduce several points in ASP. NETMVC uses the C # Language Features and has some other trivial knowledge points. If you forcibly divide a range, it
In the past, I used a very stupid method to manually draw the 64-hexagrams of Yijing. Later, we found that the 64 characters are in the Unicode Character Set. They are encoded from 0x4DC0 to 0x4DFF, that is, 19904 to 19967 in decimal format.
In
Three advanced sorting1. Heap sortingHeap sorting is suitable for scenarios with a large amount of data (Millions of data ).Heap sorting does not require a large number of recursive or multi-dimensional temporary arrays.This is suitable for a
Set the closed form to form 1 and refresh form to Form 2,
1. The binding method in Form 2 is set to public, and the instance is obtained in single-instance mode (in this way, the instance is the same anywhere ).
2. register an event on Form 1 to
Abstract class
C # the class and method can be declared as abstract, that is, abstract classes and abstract methods. Abstract Classes usually represent an abstract concept, which provides a starting point for inheritance. When designing a new
. Net Component Programming thread and concurrency Management (2)
2. Synchronization thread
Manual synchronization
Monitor
Mutual Exclusion
Event waiting
Synchronization thread
All. the. NET component supports running in a
In. NET3.0, Microsoft released a Lambda expression. This makes the expression of the Code more elegant. However, most of the new things will be rejected by instinct. Although version 3.0 has been launched for a long time, I have learned from people
C # It is easy and convenient to interact with the background by having its own background controls. However, sometimes html controls have to be used. how to interact with the background is a problem. For example, html obtains background parameters
A new project, such as packexe, uses the external file f.exe as the embedded resource,
Add code:
Using System. reflection; // ++ using System. IO; namespace packEXE {// // MainWindow. interaction logic of xaml // public partial class MainWindow:
1. Bubble SortingBubble Sorting is the slowest sorting algorithm. In practice, it is the most efficient algorithm. It compares every element in the array one by one, causing large data to sink and small data to rise. It is an O (n ^ 2) algorithm.2.
Sqlite cannot directly create user-defined functions, and cannot be easily created and used as in SQL server. But we can still create it. After the creation is successful, we can still do what we like (such as batch update)
Sequence is a common
Use SqlBulkCopy to import data to an Excel database
Because the recent project requires a large amount of data to be imported from Excel to the SQL Server database, the data volume is very large, and the SQL bulkcopy is used for data
I recently worked very leisurely. When I was free, I went out to play with my sister. I watched novels, watched movies, and had a good time. I regret it this week. The code is my favorite, write an email sending program when you do something small.
C # The Sqlite help class has recently used WPF as a client and requires offline operations to store data. In the project, considering using Sqlite embedded databases, I found a lot of information on the Internet, finally, a public help class is
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.