Exemplo n.º 1
0
        public override string ToString()
        {
            var driversDescription = Drivers.Aggregate("", (current, driver) => string.Concat(current, driver.ToString()));

            return("Name: " + Name + "\r\n" + "HardwareID: " + string.Join(" ", HardwareId) + "Caption: " + Caption +
                   "\r\n" + "ClassGuid: " + ClassGuid + "\r\n" + "DevicePath: " + DevicePath + "\r\n" + "Manufacturer: " +
                   Manufacturer + "\r\n" + "_____________________________" + "\r\n" + driversDescription);
        }