We want to provide users with some data. We think that Excel files are better for readability of users (persons rather than machines.
Compared with csv, xml, and other files, Excel supports automatic filtering, window locking, background color,
Yesterday, we needed to operate on the csproj file using code to implement switching between different vs versions.
After XElement is used to read the csproj file, the desired object cannot be obtained.
The content of the csproj file is as follows:
// Read the private void readBtn_Click (object sender, EventArgs e) {try {if (pathTxt. text = "") {MessageBox. show ("Enter the file address"); return;} readTxt. text = File. readAllText (pathTxt. text, Encoding. default); // do not need to escape "\
Previous Article: C # software development instance. customized screen tool (7) add magnifiers
Although a magnifier is added, it is not easy to locate the pixel level. It is still difficult to change the location of one or two pixels when you use
// Base class using System; using System. collections. generic; using System. linq; using System. text; using System. threading. tasks; namespace MVATwentyQuestions {class Test {public string _ name = ""; public Test (string name) {_ name = name;}
The User table is usually used when we write the "XX management system" project. In some cases, the classification of personnel belongs to the tree structure, except for the highest and lowest layers, the middle layer has relative Parent and Child.
Attribute Class is called a feature. It is a Modifier that can be freely defined by users and can be used to modify various objects to be modified. Class, interface, attribute, method, etc. unlike annotations, annotations are discarded by the
App. ConfigThe application configuration file is a standard XML file, and the XML tag and attribute are case sensitive. It can be changed as needed. developers can use the configuration file to change the settings without re-compiling the
An error is always reported when others call the interface I wrote, but this test is okay. I just want to use log4net to trace it.
After tracking, it is found that there is indeed an error log on the interface, but there is no specific error.
By
When multithreading is used, there is usually a certain amount of public data. To prevent multiple threads from simultaneously operating the same data, we need to lock the thread.
Locking Principle:
Each referenced object has a Synchronous Index
In the previous article, we summarized the most basic Thread knowledge point of multithreading and learned how to start a new asynchronous Thread to do something. But when we want to enable multithreading, if we still use the Thread, we need to
To obtain the location information of the Code, the class System. Diagnostics. StackFrame is the key. The source code is as follows:
1
Using System;
2
Using System. Collections. Generic;
3
Using System.
C # connecting to a database is not applicable to java in terms of classes. Different databases have different class libraries. Only the connection class of SqlServer is used here.
Public class DbLink {private string config = ConfigurationManager.
Author: Wang Xuan Yi, source: http://www.cnblogs.com/neverdie/Reprinted, Please keep this statement. If you like this article, click [recommendation ]. Thank you!
Using UnityEngine; using System. collections; using System. collections. generic; //
Socket communication is essential for network communication programs.
Therefore, we need a set of established and simple communication procedures.
As follows:
public class PublicSocket {public const string DOWNLOAD_STATUS_WAIT = "1"; public const
If the NopCommerce configuration allows users to register as registered via email and activate the email address after registration, we need to configure the NopCommerce email account for sending emails. Of course, emails have many other purposes,
A stopwatch program is also a heart disease for me, because I always want to write such a thing, but I always want to go over the GUI, so it is quite awkward, it may be due to the issue of learning MFC at school, but when I want to write such a
Original article taken from personal website: JueYingCoder
After learning C # basic syntax and windows form programming, we can design the course. Now we take the personnel management system as an example:Technical Implementation: C #4.0 + SQL
1. In a single thread, we can only do one thing at a time.
In multithreading, the most essential thing is that only one thing can be done at a time, but after the time slice specified by the CPU is completed, switch to another thread, and then after
Today, I saw the use of delegation and events in a project, so I reorganized a simple and easy-to-understand example for reference only.
Namespace DelegateAndEvent {public delegate void delegateTest (int a); // defines a delegate public delegate
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