11 lines
323 B
C#
11 lines
323 B
C#
namespace Pcie8586Probe.Models;
|
|
|
|
public sealed record DeviceInfo(int LogicalId, int? PhysicalId, string Description, bool IsSimulated)
|
|
{
|
|
public override string ToString()
|
|
{
|
|
var id = PhysicalId.HasValue ? $"L{LogicalId}/P{PhysicalId.Value}" : $"L{LogicalId}";
|
|
return $"{id} - {Description}";
|
|
}
|
|
}
|