Today I encountered a problem: I called the Excel COM component in a web program.
Result After each call, the task manager generates an Excel. EXE process.
This can cause fatal memory and CPU usage.
Then I want to close the process or release
1. Registry Introduction
Registry viewing toolRegedit.exe. The highest level mainly includes five keys.
There are also two hidden ones, which are generally not commonly used.
2. Registry operations
The. Net Operation registry mainly uses two
Preface: anonymous delegation refers to an anonymous method or Lambda expression.
A friend gave me a question last night:
In the following code, how can I output "Hello World"
1 If (--- enter the code ---)2 {3 console. Write ("hello ");4}5 else6 {7
1. Add the app. config file to the project:
Right-click the project name and select "add"> "Add new item". In the displayed "Add new item" dialog box, select "add application configuration file "; if the project has no configuration file before, the
Because C # shields many kernel-level operations of the operating system, it strengthens the protection mechanism, you cannot perform operations such as background mouse and keyboard simulation, process memory read/write, and network packet
I. Member Constants
1. Constants
A constant is an unchangeable value that is known during compilation and remains unchanged during the lifetime of the program. Constants are declared using the const modifier. Only C # built-in types (except system.
Asynchronous Method
After a thread calls a method, the thread continues to execute until the method is executed. This method is called a synchronous method. However, some methods may take a long time to execute, such as serial port operations or
Timer class: sets a timer to regularly execute user-specified functions. After the timer starts, the system automatically creates a new thread to execute the user-specified function.
Constructor: timer (timercallback callback, object state, int
1. foreach statement
C # The Compiler converts the foreach statement to the methods and attributes of the ienumerable interface.
1 foreach (Person p in persons)2 {3 Console.WriteLine(p);4 }
The foreach statement is parsed into the following code
1. inherited types:
Implement inheritance: indicates all member fields and functions of a base type derived from a base type. Each function of the derived type uses the implementation code of the base type unless the implementation code of the
When rewriting tabcontrol, we first thought of setting
This. drawmode = tabdrawmode. ownerdrawfixed;
Then rewrite
protected override void OnDrawItem(DrawItemEventArgs e){ base.OnDrawItem(e);}
In this way, only the area on the tab is overwritten.
when developing software, the registration code and activation code become very important for commercial purposes. Today's software cracking technology is really strong, and various large domestic and foreign software has a registration mechanism,
Compared with the previous C and C ++ statements, C # introduces the foreach statement, which makes a lot of code that completes the loop logic concise. However, when I write code today, I feel that C # is not ideal in the foreach Syntax:/**//*
I
CC-platform CC General school platform-score Query System Instructions for use
: Http://www.gotoloving.cn/test.rar
The simple and convenient user query system is combined with a powerful background management system, allowing schools to easily
Differences between synchronous methods and asynchronous MethodsThe synchronous method call needs to wait until the synchronous method execution is complete before the program continues to execute and return the result.The Asynchronous Method
For MySQL database ---> providername = "MySQL. data. mysqlclient "(if the MySQL DOTNET installation version is not installed, it must be in c: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ config machine. the Config statement is added)
There
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