Create a New Thread With or Without a Parameter in C#
Start a Thread in C# with and without a parameter, pass typed arguments with a lambda, and see why Task.Run is usually the better choice.
Start a Thread in C# with and without a parameter, pass typed arguments with a lambda, and see why Task.Run is usually the better choice.
A small generic helper that serializes any C# object to XML and back with XmlSerializer, plus the rules your classes must follow and the traps to avoid.
Encrypt and decrypt files and streams in C# with AES, a password-derived key and a random IV, and when to switch to authenticated encryption with AesGcm.
Two small adapters between COM’s IStream and .NET’s Stream: read a COM IStream as a Stream, and pass any .NET Stream to a COM API that expects IStream.
Copy data between streams in C# with CopyTo and CopyToAsync, report progress, and avoid the position mistake that produces empty output.