// Encrypted string. Note that the strencrkey length is 8 bits. (to increase or decrease the key length, adjust the IV length)Public String desencrypt (string strtext, string strencrkey)
// Decrypt the string. Note that the strencrkey length is 8
For the features of the net program, how can we provide its performance? There are no skills here. Regular operations are the core of improving performance!
1: Avoid using arraylist
Because any object to be added to the arraylist must be of the
Using system;
Using system. Collections. Generic;
Using system. text;
Using system. Data;
Using system. configuration;
Using system. Web;
Using system. Web. UI;
Using system. Data. oledb;
Namespace solog. acesstask
...{
/** //
/// Auxiliary class
C # When using some APIs provided by outlook, You need to reference Outlook-related com to the project. The specific method is to use vs to open the project and add reference to the project. On the com tab, select Microsoft Outlook 12.0 object
1. Use the ToString method of Value Type
When connecting strings, you often use the "+" sign to directly add numbers to strings. This method is simple and can get the correct results. However, because different data types are involved, the numbers
From: http://social.microsoft.com/forums/zh-cn/2219/thread/A34FFC62-072F-441C-868C-ED1293A90697
1) Avoid using ArrayList.Because any Object to be added to the ArrayList must be of the System. Object type. When retrieving data from the ArrayList, it
Method 1: Use the inf file
Note: ** The Error message "Error 1053: the service did not respond to The start or control request in a timely fashion." is displayed when the registered service cannot be started .), unable to find the cause, give up **:
1. Use the tostring method of Value Type
When connecting strings, you often use the "+" sign to directly add numbers to strings. This method is simple and can get the correct results. However, because different data types are involved, the numbers
1. Use the tostring method of Value TypeWhen connecting strings, you often use the "+" sign to directly add numbers to strings. This method is simple and can get the correct results. However, because different data types are involved, the numbers
Optimize. Net Performance1) Avoid using arraylist.Because any object to be added to the arraylist must be of the system. Object type. When retrieving data from the arraylist, it must be split back to the actual type. We recommend that you replace
Latest Snippet Version: 0.1
Using System;Using System. Net;
Using System. Net. Sockets;Using System. Threading;/*Copyright (c) 2002, Stefan Muenzel (smuenzel@users.sourceforge.net)All rights reserved.
Redistribution and use in source and binary
Create a C # serial communication program,
Create a C # serial communication program on the. NET platform. NET 2.0 provides the serial communication function. Its namespace is System. IO. Ports. This new framework can not only access the serial port
VS Exception handling
Conventional
The try may produce an exception to the code, when a row produces an exception, the line below the code does not execute, go to the catch to start the catch (System. Exception e) e.message e.finally can be
C #-VS Exception Handling,VS Exception Handling
General
Try may generate abnormal code. If one line produces an exception, the code below this line will not be executed, go to catch to start executing catch (system. exception e) e. message e.
C # create an Excel file and export the data to an Excel file,Tool raw materials:
Windows 7, Visual Studio 2010, Microsoft Office 2007Create a solution
Menu> new project> Windows Forms Application:
Add related components:
Add two dview datagri, one
Create a C # serial communication program,
Create a C # serial communication program on the. NET platform. NET 2.0 provides the serial communication function. Its namespace is System. IO. Ports. This new framework can not only access the serial port
The "system. net. Mail" provided in. NET Framework 2.0 can be easily implemented. This article lists three methods for sending:1. Use localhost;2. Use normal SMTP;3. SMTP over SSL;
For example:
1. Use localhost
Public void
The "system. net. Mail" provided in. NET Framework 2.0 can be easily implemented. This article lists three methods for sending: 1. Use localhost;2. Use normal SMTP;3. SMTP over SSL; For example: 1. Use localhost Public void sendmaillocalhost ()
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.