c#_ Project Packaging additional databases2010-07-11 23:22:45| Category: Winfrom| Report | Font size Subscription Implementation effect: Attach the database directly when you install the project.1. first create a new Setup Project in Solution
Json.net dynamic serialization and processing of time formats, json.net serialization
About Json processing in my work
1. Dynamic serialization
Second: Time Format Processing
Generally, a class may have 10 to more attributes, but we only need to
What you must know about performance optimization?
Recently, some customers reported that the system imported EXECL for data processing time-out. I was the first to respond. It was impossible. I obviously did performance optimization. How can I
What about Linq?
Today, I suddenly wondered if I would continue to loop the remaining data when the conditions are met during the loop traversal of linq. I did a small experiment.
First look at the code
This is the test class.Public class TestLinq
C # basic knowledge (IV). C # Introduction and managed code
The summer vacation is fleeting. From the ten-day education to the one-week tour of Jiangsu, Zhejiang, and Shanghai, I have experienced many things and learned many things during this long
Summary @ usage in C,
Usage in a string1. Everyone on Earth knows that string constants in C # can start with @. This advantage is that escape sequences are not processed and output as they are, that is to say, we can easily coding without adding \ (
Write your own Socket framework (III), socket framework
After the communication is completed, the application layer receives the byte [] thrown by the Socket. In this case, this data is unfriendly for developers who actually write logic, we need to
C # How to start an external program,
1. Start an external program without waiting for it to exit. 2. Start the external program and wait for it to exit. 3. Start an external program and wait for it to exit. 4. Start an external program and monitor
Socket implements simple Web server and socketweb Server
The previous blog introduced how to use socket to access the web server. There are two key points:
1) familiar with Socket programming;
2) be familiar with HTTP.
In the previous article, we
Use C # To insert the header and footer in word,
// Insert footer
[Csharp]View plaincopyprint?
Public void InsertFooter (string footer)
{
If (ActiveWindow. ActivePane. View. Type = WdViewType. wdNormalView |
ActiveWindow. ActivePane. View. Type
C # implement the "add control" button on the taskbar,
Use of Windows7Taskbar
Bytes
: Http://yunpan.cn/QauRaNK4H3BYW (extract code: fe58)
Encapsulated classes: Windows7Taskbar, ThumbButtonManager, ThumbButton, JumpListManager, RegistrationHelper,
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
I ++ and ++ I
Many people on the internet asked me how I ++ and I understood it. The answers provided by netizens are almost the same. As follows:
I ++: perform computation first, and then I auto-increment 1
++ I: I auto-increment 1, and then
C # Lazy for performance optimization implement delayed InitializationIn. NET4.0, Lazy can be used to implement delayed initialization of objects to optimize system performance. Delayed initialization delays object initialization until the first
Parallel thread usage, parallel thread
Public void run (Action onload){List directoryLists = new List ();DirectoryLists = Directory. GetDirectories (m_importPath). ToList ();Parallel. ForEach (directoryLists, new ParallelOptions
FormsAuthentication implements single-point logon and java implements single-point logon.
Address: http://www.wlm.so/Article/Detail/lmb48bk9f690n00000
Single Sign-on, which is very common in the network, is discussed here to achieve Single Sign-On
Practical basic skills (07) -------- view the Gridview tips of the DEV control.
1. Set a column in the Gridview control to be uneditable.
This. gridData. gridView1.Columns ["change_date"]. OptionsColumn. AllowEdit = false;
Field: change_date is a
[C #] events,
The CLR event mode is based on the delegate, which is a type of safe method for calling the callback method.
I personally think that an event is essentially a delegate, so I figured out the delegate, as long as I knew the basic syntax
C # Winform calls the JS method and uses md5 of the QQ logon password as an example,
C # Call Code
ScriptControlClass js = new ScriptControlClass (); js. language = "JScript"; js. addCode (textBox2.Text); // JS code string result = null; result = js.
(2) From the Perspective of actual projects, the overall design of the MEF plug-in framework and the overall design of mef1. Introduction to the MEF framework
The full name of MEF is Managed Extensibility Framework (MEF), which is a part of. net4.0
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