Add() public method

Adds a with the specified value to the .
public Add ( Descriptor val ) : int
val Descriptor The to add.
return int
Example #1
0
        internal Bus(usb_bus nativeBus)
        {
            this.nativeBus = nativeBus;
            this.descriptors   = new DescriptorCollection();

            for (usb_device dev = nativeBus.Devices; dev != null; dev = dev.Next) {
                descriptors.Add(new Descriptor(dev));
            }
        }