Multi-thread and multi-thread (
This article is followed by the previous article to continue to learn multithreading.
Thread Synchronization
In most cases, threads in the computer run concurrently. Some threads are independent and run
C # convert Chinese characters to Unicode encoding,
It is mainly used to convert Chinese characters into Unicoude encoding when generating json format to prevent page garbled characters.
protected string GetUnicode(string text) { string
Unity3d mesh merging and unity3d Mesh
Several different objects can be combined in Unity3d to optimize the grid.
Create a temporary scenario in Unity3d as follows: Create a C # script named "CombineMeshes" and mount it on the Cube.
The content of
C # buttons for adding control to the taskbarWindows7Taskbar usage: http://yunpan.cn/QauRaNK4H3BYW (extract code: fe58) encapsulated classes: Windows7Taskbar, ThumbButtonManager, ThumbButton, JumpListManager, RegistrationHelper Windows7Taskbar for
Notes on returned values of ExecuteNonQuery (): executenonquery
When querying whether data exists in a table, I use ExecuteNonQuery () and judge whether the value is greater than 0 to determine whether the data exists. The results are inconsistent
Determines whether the DataReader contains a field. The datareader Field
The GetName () method of DataReader can be used to obtain the field name.
For (int I = 0; I
{
// Determine whether the fieldName field exists
If (dataReader [I]. GetName (
FileShare: fileshare
C # Reading and Writing text files are generally implemented using StreamWriter (this is the case when reading a book, and this is basically the case after graduation). The Code is usually as follows:
Using (StreamWriter sw =
C # Coding specifications summarized by myself-6. FormatThe unified use of the format can make the code clear, beautiful, and easy to read. In order not to affect the encoding efficiency, the following rules should be made: the length of a file
Use the C # reflection design to support scalable plug-ins,
1. Design Interface Class:
public interface IBase{ void Somefun();}
2. Design extension plug-ins:
class PluginCls:IBase{ public void Somefun() {
C # Coding specifications summarized by myself-5. How to Write commentsHow to write comments to avoid the use of ambiguous pronouns. In some cases, "it" and "this" are prone to ambiguity, the safest way is not to replace all possible ambiguous
Inconvenience caused by hibernate joint primary key (transfer) and hibernate
Note the following when using the hibernate joint primary key:1. First, write the Union primary key in the ing file,Example:Java code
The label in the
Write your own Socket framework (1). socket framework
This series only introduces the C # asynchronous Socket framework that can be used in the production environment. If you see similar code elsewhere, don't be surprised. It may be that when I
C # Coding specifications summarized by myself-4. Comments,
Note
Note is undoubtedly the fastest way to let others know your code as quickly as possible, but the purpose of writing a comment is not just to "explain what the code has done ", more
C # use http post to call the webservice that requires a certificateI used the Citi interface websevice for the Citibank project some time ago. For many reasons, it was unsuccessful to directly reference webservice in the project, so I used the http
Six principles of the design model (2)-the principle of the replacement of Lishi and the six major design models
Definition:
Objects in a program should be replaced by its subclass without changing the program's correctness. That is to say, all
C #4.0 syntactic sugar Article 1: Automatic attributes & implicit typesAutomatic attributes: in C #4.0 and later versions, when the attribute accessors do not need other logic, the automatically implemented attributes make the attribute Declaration
Problem: ORA-28000: the account is locked ., Ora-28000locked
Open cmd:
Run
Sqlplus/nolog
RunConn/as sysdba
Run
Alter user username account unlock;
ORA-28000 in oracle Database: the account is locked Problem
This user has been locked.
Const, readonly. Do you really understand this? May be interviewed... constreadonly
First of all, it is undeniable that these questions will be frequently asked by the interviewer during the interview, but are your answers satisfying the
. NET generic 03, generic type conversion, covariant and inverter,. net03
The emergence of Convariant and Contravariant makes it possible to implicitly convert arrays, delegates, and generics. A subclass is converted to a base class, which is called
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