Data type 1), integer type: int can only store integers, not decimals.
2). Decimal type: double can store both integers and decimals. The number of digits after the decimal point is 15~16.
3), mo
Tag: C #
C # Send information to the main thread by delegate
c# Windows programming often uses multiple threads. When you want to change the page data of the main thread in the newly opened thread, you need to delegate through the delegate
public deleg
C # Dahua camera capture class
1 class Camera < span style="color: #008000;">// Dahua camera class
2 {
3 private IDevice m_dev; /* Device object*/
4 List m_frameList = new List() ; /* Image cache list */
5 Thread render
C # Netcore HTTP request package
public class NewHttpClient2
{
public enum BodyFormat
{
Formed, Json
}
public BodyFormat BodyType;
public string Method;
public Uri Uri;
public Encoding ContentEncoding;
public Di
C # Standard IDSPOSE mode
.net’s GC mechanism has two problems: First, GC cannot release all resources, and it cannot release unmanaged resources. Secondly, GC is not real-time, and all GCs are uncertain.
In order to solve
C # Static class single case mode comparison
The company’s classes need to be implemented in a singleton mode, which can save resources and avoid the generation of duplicate objects. But the static class can also do this, and it is more conci
C # Epplus export, set cell format, set column header style, set cell grid box, formatted date
//Data source DataTable
DataTable dataTable = new DataTable();
//…
//…
ExcelPackage package = new ExcelPackage();
//Create Sheet
ExcelWorksheet workSheet = package.Workbook.Worksheets
C # uses the CEF3 to take the list of Jingdong keyword product list, take the mobile phone as an example
Using c#’s cef3 to simulate browser operations, grab the list of keywords in the Jingdong Mall.
Get the product title, product id, product link, product price
public partial class Form1
C # – How to get an instance of BackgroundWorker from the currently executed method?
I’m using a background worker program that can have n instances. The problem is that the DoWork method (with the’sender’ parameter, that is, BackgroundWorker) calls other codes that generate the ca