ToString more conventional
This commit is contained in:
parent
8d70879c68
commit
f6e8ddb91d
@ -15,7 +15,12 @@ public readonly struct SerialPortInfo
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return
|
||||
$"{GetType().Name}\nPortName: {PortName}\nDescription: {Description}\nManufacturer: {Manufacturer}\nDeviceID: {DeviceID}\n\r";
|
||||
return $"{string.Join("\n\t",
|
||||
$"{GetType().Name}",
|
||||
$"PortName: {PortName}",
|
||||
$"Description: {Description}",
|
||||
$"Manufacturer: {Manufacturer}",
|
||||
$"DeviceID: {DeviceID}")}" +
|
||||
$"\n\r";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user