Added .NET Framework 4 target for "ComPortHelper" library

Update ComPortHelper.cs, ComPortInfo.cs, and 2 more files...
This commit is contained in:
2024-05-24 16:35:15 +02:00
parent 20052c3fb4
commit 6e4462c8fa
4 changed files with 97 additions and 87 deletions
@@ -1,18 +1,18 @@
namespace NibblePoker.Library.ComPortWatcher;
namespace NibblePoker.Library.ComPortWatcher {
public class ComPortInfo {
public string RawName;
public string DeviceName;
public string FriendlyName;
public class ComPortInfo {
public string RawName;
public string DeviceName;
public string FriendlyName;
public ComPortInfo(string rawName, string deviceName, string friendlyName = "") {
RawName = rawName;
DeviceName = deviceName;
if(string.IsNullOrEmpty(friendlyName)) {
FriendlyName = "No friendly name found (" + rawName + ")";
} else {
FriendlyName = friendlyName;
public ComPortInfo(string rawName, string deviceName, string friendlyName = "") {
RawName = rawName;
DeviceName = deviceName;
if(string.IsNullOrEmpty(friendlyName)) {
FriendlyName = "No friendly name found (" + rawName + ")";
} else {
FriendlyName = friendlyName;
}
}
}
}
}