Files
DotNet-ListComPort/NibblePoker.Library.ComPortHelpers/ComPortInfo.cs
T
aziascreations 6e4462c8fa Added .NET Framework 4 target for "ComPortHelper" library
Update ComPortHelper.cs, ComPortInfo.cs, and 2 more files...
2024-05-24 16:35:15 +02:00

19 lines
463 B
C#

namespace NibblePoker.Library.ComPortWatcher {
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;
}
}
}
}