Compare Dates in C#: Operators, Compare and Date-Only Checks
Compare two dates in C# with operators or DateTime.Compare, ignore the time of day, measure the difference, and avoid the time zone trap.
Compare two dates in C# with operators or DateTime.Compare, ignore the time of day, measure the difference, and avoid the time zone trap.
Compute an MD5 hash of a string or file in C# with MD5.HashData and Convert.ToHexString, and learn when MD5 is the wrong choice.
Empty the Windows Recycle Bin from C# with the SHEmptyRecycleBin API, with or without the confirmation dialog, for all drives or a single one.
Eject and close the CD or DVD drive tray from C# with the mciSendString Windows API, including how to target a specific drive letter.
Show the WinForms FontDialog, preselect the current font, add color and a live Apply preview, and handle Cancel correctly.