C# Version of serial number script

Decided to try some C# programming. Program is just a rewrite of the
serial.py script.