Copy One Stream to Another in C#
Copy data between streams in C# with CopyTo and CopyToAsync, report progress, and avoid the position mistake that produces empty output.
Copy data between streams in C# with CopyTo and CopyToAsync, report progress, and avoid the position mistake that produces empty output.
List files in a folder in C# with Directory.GetFiles and EnumerateFiles: filter by extension, search subfolders and skip folders you cannot read.
Create, display or send an Outlook email with attachments from C# using COM interop, plus the traps: new Outlook, security prompts and releasing COM objects.
Practical LINQ examples in C# for filtering, grouping, sorting and projecting data, in both method and query syntax, plus the deferred execution traps.
Format a double with a fixed or maximum number of decimal places, leading zeros and thousands separators in C#, and avoid the culture and rounding traps.