MonoLibUsb.Descriptors.MonoUsbDeviceDescriptor.ToString C# (CSharp) Method

ToString() public method

Returns a T:System.String that represents the current MonoUsbDeviceDescriptor.
public ToString ( ) : string
return string
        public override string ToString()
        {
            Object[] values = {
                                  Length, DescriptorType, "0x" + BcdUsb.ToString("X4"), Class, SubClass, Protocol, MaxPacketSize0,
                                  "0x" + VendorID.ToString("X4"), "0x" + ProductID.ToString("X4"), BcdDevice,
                                  ManufacturerStringIndex, ProductStringIndex, SerialStringIndex, ConfigurationCount
                              };
            string[] names = {
                                 "Length", "DescriptorType", "BcdUsb", "Class", "SubClass", "Protocol", "MaxPacketSize0", "VendorID", "ProductID",
                                 "BcdDevice",
                                 "ManufacturerStringIndex", "ProductStringIndex", "SerialStringIndex", "ConfigurationCount"
                             };
            return Helper.ToString("", names, ":", values, "\r\n");

        }
    }
MonoUsbDeviceDescriptor