Play MP3 and WAV Files in C#: SoundPlayer, NAudio and Media Player
Play WAV files with SoundPlayer and MP3 files with NAudio or Windows Media Player in C#, synchronously or in the background, and await the end.
Play WAV files with SoundPlayer and MP3 files with NAudio or Windows Media Player in C#, synchronously or in the background, and await the end.
Sort a WinForms ListView by the clicked column, toggle ascending and descending, and sort numbers and dates by value instead of as text.
Check whether two bitmaps have identical pixels in C#, hundreds of times faster than GetPixel, using LockBits and Span.SequenceEqual.
Use reflection in C# to list a type’s methods and properties, read their parameters, create objects and call methods by name, and keep it fast.
Combine enum values with the [Flags] attribute in C#: how to define the values, set, clear, toggle and test flags, and the traps around zero and HasFlag.