Download a File from a URL in C# with HttpClient
Download files in C# with HttpClient, asynchronously or synchronously, with progress reporting, cancellation, and no half-written files when a download fails.
Download files in C# with HttpClient, asynchronously or synchronously, with progress reporting, cancellation, and no half-written files when a download fails.
Format integers as hex with the X specifier, parse hex strings back with int.Parse or Convert.ToInt32, and convert byte arrays with Convert.ToHexString.
List hidden files in a folder in C# with DirectoryInfo and FileAttributes, and avoid the EnumerationOptions default that skips them.
XPath queries in C# with XmlDocument and XDocument: filter by position or value, use count() and sum(), and handle XML namespaces correctly.
The C# attributes you will meet most often, grouped by job: compiler hints, caller info, serialization, validation and designer metadata, with examples.