Publication from archives, might be useful... Once I encountered the need to take screenshots from a PDA, and I couldn't find any suitable program. Specifically, a simple, small one that doesn't install anything, but works. I decided to write it, spent two hours digging the internet about how to do it - it turned out not to be so simple, only through API on mobile devices.
Simple example of reading incoming data from the COM port using SerialPort in C#. Everything is quite simple, to get the data, we will need to use the DataReceived event. Example: private string stroka=""; private void se…
Interpolated string in C# is a string preceded by the $ symbol. Such a string may contain special expressions in curly brackets: int x = 18; Console.Write($"Specified age {x} years."); // Outputs: Specified age 18 years.
Example of XML conversion to DYNAMIC and its use. To start, we will need some libraries: using System; using System.ComponentModel; using System.Xml.Linq; using Newtonsoft.Json; Code: string str = "<response><setter><name>K…
Often there is a need to pass a set of data to a procedure at once, in this publication, an example of how to do this in C# for the MSSQL database will be given. We will use the usual way of calling a procedure without any frameworks. First, let's create a test table in the database