ICSharpCode.USBlib.DescriptorCollection.Add C# (CSharp) Method

Add() public method

Adds a with the specified value to the .
public Add ( Descriptor val ) : int
val Descriptor The to add.
return int
        public int Add(Descriptor val)
        {
            return List.Add(val);
        }

Usage Example

Ejemplo n.º 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));
            }
        }