C # string fuzzy match recursion,
Using split and Recursion
Private int search (string strValue, char [] searchchar, int index) {var temp = strValue. split (searchchar [index]); var countt = temp. count (); if (countt> 1) {++ index; if (temp [0].
ADO. Net,
ADO. NET is a database access architecture in the. NET Framework. ADO is short for ActiveX Data Objects. It is used to access the database by. NET applications.
The six objects of ADO. NET are:
1. Connection (connect to the database and
C # mutual calls with lua,
Lua is a good scalability language. The Lua interpreter is designed as a library that is easily embedded into the host Program. LuaInterface is used to implement mixed programming of Lua and CLR.
(1) C # Call Lua
Test
C # Why does Request. InputStream read the input stream as null,
When I tested the mobile App interface today, I found that the parameter in the body obtained through the POST method is always empty, but the data can be obtained when the data volume
. Net-C # asynchronous program knowledge point sorting,
Thread:Each Windows process has a Main Thread used to enter the entry point of the program, for example. the Main () method is used as the entry point of the program. When you call this
Reflection gets \ sets the property value, reflection gets the property value
1 // define class 2 public class MyClass 3 {4 public int Property1 {get; set;} 5} 6 static void Main () 7 {8 MyClass tmp_Class = new MyClass (); 9 tmp_Class.Property1 = 2;
What are the advantages of old programmers over new programmers ?, Advantages of programmers
First, how many practical work experiences are called Old programmers? I have defined it as five years. After all, I have developed it in the company for
C # reflection,
. Net is often used to dynamically load DLL, and DLL may contain various parameters, methods, forms. How to call to dynamically load these parameters, methods, and forms?
In C #, we need to use reflection. First, we need to
Solution for Newtonsoft. Json version conflict,If different third-party libraries in the same project use different versions of Newtonsoft. in the case of Json, you can add the following nodes to the configuration file of the main project. json is
Observer-intermediary design mode (non-delegate implementation mode) and Observer Design Mode
Implemented through interfaces to achieve loose coupling.
Main form
public partial class mainform : Form { public mainform() {
An exception of the "System. NullReferenceException" type occurs in App_Web_2tjb2nqh.dll, but not in user code (C # development ),
An exception of the "System. NullReferenceException" type occurs in App_Web_2tjb2nqh.dll, but not in user code.
C # download an object through Http,
/// /// Download an object through Http/// Public void HttpDownloadFile (string url, string path){// Set parametersHttpWebRequest request = WebRequest. Create (url) as HttpWebRequest;// Send the request and
Inboxing and unboxing in C # (easy to understand ),
Packing and unpacking are the operations to convert the value type and the reference type.
Packing: implicitly converts a value type to an object type, or converts the value type to an interface
C # X-Forwarded-,
At first, I found the information on the Internet: Add "X-Forwarded-For" to Headers ".
I tried it and found it was ineffective.
After thinking about it, I tried the following code and found it worked.
HttpWebRequest
C # extension of the reflection method,
Reflection is a good helper for programmers. With reflection, you can write less than half of the Code. Below are some common reflection extension methods.
using System;using System.Collections.Generic;using
C # To implement QQ functions and related issues,
For QQ, I must have known it for a long time, but I have never carefully observed the specific implementation steps of this operation. So here we will simply write down the steps in our memory:
QQ or
In the FCL source code, the array type learning and sorting function Sort function analysis, fclsort
Array is the base class of all arrays.ArrayList solves all the shortcomings of Array classes and can be dynamically scaled up. However, the type is
LED service summary, led Summary
Summary of simple programs
A simple small program used to control the LED screen.LED Service Development Summary system running system function description: 1. ServerStrack service, which provides front-end access.
C # Summary of messy knowledge,
-When we make an http request, if we want to return the returned format in a json string: httpClient. DefaultRequestHeaders. Add ("Accept", "application/json; odata = verbose ");
HttpClient has a constructor. The
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.