The C# program always fails the verification when sending the RSA-encrypted password to the backend. I use wireshark to capture packets and find that the + signs in the password sent by POST have b
Tag: C #
Jo C #
1 using System;
2 public class MyDate{
3 private int month,day,year;
4 public MyDate(int _month=1,int _day= 1,int _year=1900 ){
5 bool ok=true;
6 if(_month>12 || _month<1 || _year<0 || _
[C #] Classroom knowledge point # 1
Standard numeric format string https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/standard-numeric-format-strings
https://docs.microsoft.com/zh-cn/dotnet/standard/base-types/composit
[C #] Record synchronization method as asynchronous method
[C#] Rewrite the synchronous method into an asynchronous method
When we encounter the need to spend longer In time programs,
We usually call it asynchronously (such as BeginRead, EndRea
C # save files
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = “Excel spreadsheet (*.xlsx)|* .xlsx”;
sfd.FilterIndex = 1;
sfd.RestoreDirectory = true;
if (sfd.ShowDialog() == DialogResult.OK)
{
C # Design mode: Interpreter mode (Interpreter Pattern)
One, C# design pattern: Interpreter Pattern
1, the application of interpreter pattern is the difficulty in the application of Interpreter pattern, only to meet the “frequent changes in busine
Modify a single XML attribute in C #
I have written the XML document very well, it will look like this
I I’m trying to find a way to access the “class” attribute of a single character and modify it. So far, I have reached the po
C # expression tree explanation (1)
I. Preface I have always wanted to write an article about Dpper’s customized extension, but it will be designed to parse Lambda expressions, and to parse Lambda expressions, you must Know the relev
C # serial port operation
1
SerialPort _Serial = new SerialPort
{
PortName = “COM1”,
BaudRate = 9600,
DataBits = 8,
Parity = Parity.None,
StopBits = StopBits.One,
WriteTimeout = SerialPort.InfiniteTimeout,
Rea
C # get three ways to get web content
C# usually has three methods to get web content, using WebClient, WebBrowser or HttpWebRequest/HttpWebResponse.
Method 1: Use WebClient
static void Main(string[] args)
{
try {
WebC