public static void enumerate() { Console.WriteLine("Legend: [?] Unknown Device, [x] Not IceWerx, [v] IceWerx"); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { Win32SerialInfo.enumerate(); } else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { OsxSerialInfo.enumerate(); } else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { LinuxSerialInfo.enumerate(); } else { Console.WriteLine("Platform not supported."); foreach (var s in SerialPort.GetPortNames()) { Console.WriteLine(s); } } }