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");
}
}