Called in form_load and form_closing.
Using system. runtime. interopservices;
Public class Win32{Public const int32 aw_hor_positive = 0x00000001; // open the window from left to rightPublic const int32 aw_hor_negative = 0x00000002; // open the
1,
Boxing/unboxingPacking is the process of converting the value type to the reference type.
Value Type-> Object (packing); otherwise, it is unpacking.
In box, we do not need to explicitly convert the type, but in Unbox, We must convert the
A method to obtain the reflected content
Void getreflectioninfo (Assembly myassembly)
{
Type [] typearr = myassemby. gettypes (); // obtain the type
Foreach (type in typearr) // obtain detailed information for each type
{
Constructorinfo []
Flytcpframework originated from a popular C # asynchronous TCP communication library on the Internet. I have made some sorting and extended functions, and added the file transfer function, A msdn-style manual is created.
Class diagram:Usage:
C # operation XML Summary 1 many articles on the Internet that use C # To operate XML, but all of them work together to complicate the simple problem and leave it blank for reference. If you copy the hard cover, it will not only fail to reach the
I recently encountered a question during the interview: 100 non-repeated random numbers are generated. The solution is as follows:
Using System;Using System. Collections;
Class Program{Static void Main (){ArrayList array = MyArray. GetArray (10
2010-03-18 10:50:55
1. Add the encoding method of the entire website to the web. config file.In this way, the parameters are transmitted in gb2312 Chinese encoding mode. The default value is UTF-8.
2. the parameter is first encoded during
Reprinted: Source: http://www.cnblogs.com/yan0837/articles/304355.html
Abstract: This article describes how to use the MSComm control in serial programming.
ProjectMSComm controlComport attributesRThreshold attributesCTSHolding attributesSThreshold
If you have activated a new blog, write an article. During the project process, we will inevitably encounter the problem of calling the program prepared by someone else. It may be.. NET or c ++. I encountered this problem during the process of
View Code
Using System;
Using System. Collections;
Class TempClass{Public class CustomCollection: ICollection{
Private int [] intArr = {1, 5, 9 };Private int Ct;
Public CustomCollection (){Ct = 3;}Void ICollection. CopyTo (Array myArr, int
Using System;
Using System. Collections. Generic;
Using System. Linq;
Using System. Text;
Namespace ConsoleApplication1
{
Class MyCls
{
Public int X
{
Get;
Set;
}
Public int Y
{
Get;
Set;
}
Public override string ToString ()
{
Return string. Format
Refer to this article:
Http://blog.csdn.net/sonyicn/archive/2006/05/20/746280.aspx
The actual code is as follows:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Using System;
Using System.
C # member functions of AxShockwaveFlash
1. AlignMode (read/write)
Syntax: AlignMode As Long
Note: Alignment mode (associated with the SAlign attribute ). When the length/width ratio of the control is different from that of the video and the WMode
Function of reflection:
1. You can use reflection to dynamically create instances of the type, bind the type to an existing object, or obtain the type from an existing object.
2. The application needs to load a specific type from a specific program
String str1 = Process. GetCurrentProcess (). MainModule. FileName; // obtain the file name of the currently executed exe.
String str2 = Environment. CurrentDirectory; // gets and sets the fully qualified path of the current directory (that is, the
You can use two functions to operate the mouse:
[DllImport("user32.dll")] static extern bool SetCursorPos(int X, int Y); [DllImport("user32.dll")] static extern void mouse_event(MouseEventFlag flags, int dx, int
For more information about the concept of Huffman, see the data structure book.
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace StringCompresser { public class Huffman
public static IList FillList(System.Data.IDataReader reader) { IList lst = new List(); while (reader.Read()) { T RowInstance = Activator.CreateInstance(); foreach (PropertyInfo Property in
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