The dynamic Type in C#: How It Works and When to Use It
What the dynamic keyword does in C#, how it differs from var and object, where it is still useful, and why most modern code avoids it.
What the dynamic keyword does in C#, how it differs from var and object, where it is still useful, and why most modern code avoids it.
Match, extract, replace and split text with Regex in C#, use source-generated regex in .NET 7+, and look up the pattern syntax in one table.
Capture the primary screen, every monitor or a single form in C# with Graphics.CopyFromScreen, and avoid the DPI scaling trap that crops screenshots.
Why Bitmap.GetPixel and SetPixel are slow, and how to process pixels hundreds of times faster with LockBits, Span
Turn a System.Drawing Image into a byte array in PNG, JPEG or its original format, and know when File.ReadAllBytes is the better answer.