1. What is C #?
C # is an application that Microsoft creates for the. NET platform and runs on the. net clr.ProgramIs a secure, stable, simple, and elegant language derived from C and C ++.Programming Language.
2. What is. NET Framework?
. NET
C # log on to collect related information for big data collection. I have referenced a lotArticle, The recorded information is a little messy. Next time you need to use it for reference. It is displayed in the article.Http://topic.csdn.net/u/20090929
C # log on to the collection of related information for big data collection. I have referenced many articles some time ago. The recorded information is a bit messy. Next time I need a backup reference, which is shown in the article.Http://topic.csdn.
First open the website, view the source file, and find its logon form.For example:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Username:
Maxlength = "40" size = "23" name = "username"
1. Foreach has 30% higher performance than2. Avoid using ArrayList, because any Object to ArrayList is encapsulated as an Object, and it needs to be split.Remove with generics3. HashTalbe replaces stringdireary ary, NameValueCollection, and
// Obtain the path or UNC location of the loaded file that contains the list.
Public static string sApplicationPath = Assembly. GetExecutingAssembly (). Location;
// Result: X: \ xxx. dll (directory where the. dll file is located +. dll file name)
System. StringReference Type
Basic Member:
Length returns the Length of the string.
Contains () determines whether the current String object Contains a specified String object.
Insert () is used to receive a copy of the current string after the new
The using keyword has two main purposes:
This command is used to create an alias for a namespace or import the types defined in other namespaces.
As a statement to define a range. objects are released at the end of this range.
The
Microsoft. net Framework
The printing function is provided in the form of components, which provides great convenience for programmers. However, the use of these components is still very complicated. It is necessary to explain it.
Print operations
The function is as follows:
Enter the year y, month m, and day d to return the week public static string getWeekDay (int y, int m, int d){If (m = 1) {m = 13; y --;}If (m = 2) {m = 14; y --;}Int week = (d + 2 * m + 3 * (m + 1)/5 + y/4-y/100 + y/400) %
Recently I have been studying C #2.0 and added the System. Nullable generic structure in. NET Framework 2.0. It has the ability to process value-type data and to process null. For example:
Code highlighting produced by Actipro CodeHighlighter
The last semester of the year was also the last one, so I didn't share my lessons with you. Now that the course is over, we are about to start the project development in the next stage. So let's take a look at this gap to summarize some of the
During product project implementation, we will inevitably encounter different functions because the project service objects are different.
In this way, it is time-consuming to recompile the entire solution after each modification.
In fact, with the
Pay attention to the following two points during interface ing:
1. When determining which member of the class implements the interface member, the explicitly stated interface member in the class is implemented first than other members.
2. members
This... Let me leave it alone. It is purely written and playful.
Method 1:Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->DataTable tblDatas = new DataTable ("Datas ");DataColumn dc = null;Dc
Sometimes we need to start multiple threads. In more cases, a thread may operate on attributes in other threads.
However, threads are concurrent and general calls cannot meet our requirements.
So we can use the delegate here. The Code is as
1. Create a Console Application and add Microsoft Excel 12.0 Object Library reference in the COM video card.
2. paste the following source code.
using System;using Excel = Microsoft.Office.Interop.Excel;namespace CShartExcelTest{ class Program
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