Пример #1
0
 public IEnumerable <string> Status()
 {
     return(_devices.Select(device =>
                            $"Device {device.LinkType} {(device.Opened ? "Open" : "Closed")} {device.LastError}\r\n{device}"));
 }
Пример #2
0
 public IEnumerable <string> Status()
 {
     return(_devices.Select(device => string.Format("Device {0} {1} {2}\r\n{3}", device.LinkType, device.Opened ? "Open" : "Closed", device.LastError, device)));
 }