After years of hard work the free book “Fundamentals of Computer Programming with C#” was finally published (in September 2013). The free C# book comes with free video lessons, presentation slides, mind maps, exercises, guidelines and exercise solutions to help learners to study the foundations of computer programming and trainers to teach newbies in programming,
I needed to enumerate all COM ports in C# and get their name (e.g. COM1, COM2, …) and their description shown in the Windows Device Manager (e.g. “Communications Port”, “RT USB MRTD Reader”). You could find lots of unmanaged code for doing this but I think this C# code could be helpful to people who