When I made a report today, I encountered the problem of multiple headers, and the corresponding report formats were the same. Therefore, a report template is used.
Step 1: Introduce Microsoft. Office. InterOP. Excel; system. reflection; namespace
1. array set
In fact, this concept is already included in the array section. In fact, the array set is new int [2];
Http://msdn.microsoft.com/zh-cn/library/57yac89c (vs.80). aspx
2. arraylist
The difference between arraylist and array:
From: http://www.cnblogs.com/Thriving-Country/archive/2009/12/20/1628314.html
This quarter, the company asked to read the book "Framework Design (version 2nd) CLR via C #", because the previous two months have been very busy and have no time to read,
Three Windows SDK functions: winexec, ShellExecute, and CreateProcess. You can call other programs.
WinexecThis function is the simplest and has only two parameters. The prototype is as follows:
Uint winexec (
Maid, // command path
Uint ucmdshow //
The Singleton mode is used to ensure that only one instance in a class is created and provides a global access pointer to the instance.
Don't talk nonsense, go to the code
Singleton
Public sealed class signton{Public static signton Singn =
I learned new features of C #4.0: optional parameters, named parameters, and parameter arrays.
1. Optional parameters: Specify the default value for a specific method parameter. You can omit these parameters when calling a method.
Note:
(1) The
1. The data read from the database in the Crystal Report. When the field content is too long, it will affect the appearance. You need to set it to automatic line feed for display.
2. Open the "set object format" attribute of the field and select
Insert tens of thousands of data records at a time
1.
[CSHARP]View plaincopy
///
/// Datatable batch add (with transactions)
/// /
// data source
/// define a set of relationships between data sources and target source columns
Today, a colleague asked me a piece of code written by a company employee who has left the company. It looks a little strange. The Code is as follows:
/// /// return the request // /// /// encryption // Public static string request (string
Enumerable. Cast is used to convert ienumerable to a generic version of ienumerable . After conversion, you can enjoy other enumerable methods (such as where and select), which greatly facilitates our coding.
However, only one example of converting
In my previous article "C # Extension Method whimsical use advanced Article 6: winform control selector", a winform selector is provided. Its essence is a "Tree" traversal tool, however, this traversal is limited to the control class of winform. In
The following is a random reading class for data files that I implemented. A row of large text files can be randomly read. On my machine, the speed of reading a 200,000th MB text file has increased from MS to 3 ms.When reading text files, Readline ()
CSC has some rules when processing byte types. We may not pay attention to writing code at ordinary times.
For example: // There are several lines of such codeByte A = 1;Byte B = 2;// Byte sum = a + B; // incorrect
Console. writeline (a + B).
I. prerequisites-program memory allocation
The memory occupied by a C/C ++ compiled program is divided into the following parts:
STACK: the stack is automatically allocated and released by the compiler, storing the parameter values of the function
Reprinted URL: http://www.cnblogs.com/slikyn/articles/1525940.html
Today is the first time I have come into contact with thread in C #. I have studied the thread. Join () method, and I will talk about my understanding below.
The explanation of
4. What is the purpose of static? (Please specify at least two types)1. restrict the scope of Variables2. Set the storage domain of the Variable7. What is the difference between reference and pointer?1) The reference must be initialized and the
An unhandled exception is always encountered during C # development. You can call the Appliaction. threadexcetpion () event to handle this exception.
This method is very simple to use and highly efficient. developers can easily add other
Control. Invoke method (delegate): executes the specified delegate on the thread that owns the basic window handle of this control.
Control. begininvoke method (delegate): executes the specified delegate asynchronously on the thread where the basic
Using system;
Using system. Collections. Generic;
Using system. text;
Using system. collections;
Using system. IO;
Namespace your namespace name{Class MD5{// Static state variablesPrivate Static uint32;Private Static uint32 B;Private Static uint32
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