C# Class ICSharpCode.USBlib.DescriptorCollection

Inheritance: System.Collections.CollectionBase
Datei anzeigen Open project: roboime/legacy-roboime Class Usage Examples

Public Methods

Method Description
Add ( Descriptor val ) : int

Adds a with the specified value to the .

AddRange ( Descriptor val ) : void

Copies the elements of an array to the end of the .

AddRange ( DescriptorCollection val ) : void

Adds the contents of another to the end of the collection.

Contains ( Descriptor val ) : bool

Gets a value indicating whether the contains the specified .

CopyTo ( Descriptor array, int index ) : void

Copies the values to a one-dimensional instance at the specified index.

DescriptorCollection ( ) : System

Initializes a new instance of .

DescriptorCollection ( Descriptor val ) : System

Initializes a new instance of containing any array of objects.

DescriptorCollection ( DescriptorCollection val ) : System

Initializes a new instance of based on another .

GetEnumerator ( ) : DescriptorEnumerator

Returns an enumerator that can iterate through the .

IndexOf ( Descriptor val ) : int

Returns the index of a in the .

Insert ( int index, Descriptor val ) : void

Inserts a into the at the specified index.

Remove ( Descriptor val ) : void

Removes a specific from the .

this ( int index ) : Descriptor

Represents the entry at the specified index of the .

Method Details

Add() public method

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

AddRange() public method

Copies the elements of an array to the end of the .
public AddRange ( Descriptor val ) : void
val Descriptor /// An array of type containing the objects to add to the collection. ///
return void

AddRange() public method

Adds the contents of another to the end of the collection.
public AddRange ( DescriptorCollection val ) : void
val DescriptorCollection /// A containing the objects to add to the collection. ///
return void

Contains() public method

Gets a value indicating whether the contains the specified .
public Contains ( Descriptor val ) : bool
val Descriptor The to locate.
return bool

CopyTo() public method

Copies the values to a one-dimensional instance at the specified index.
/// is multidimensional. /// -or- /// The number of elements in the is greater than /// the available space between and the end of /// . /// is . is less than 's lowbound.
public CopyTo ( Descriptor array, int index ) : void
array Descriptor The one-dimensional that is the destination of the values copied from .
index int The index in where copying begins.
return void

DescriptorCollection() public method

Initializes a new instance of .
public DescriptorCollection ( ) : System
return System

DescriptorCollection() public method

Initializes a new instance of containing any array of objects.
public DescriptorCollection ( Descriptor val ) : System
val Descriptor /// A array of objects with which to intialize the collection ///
return System

DescriptorCollection() public method

Initializes a new instance of based on another .
public DescriptorCollection ( DescriptorCollection val ) : System
val DescriptorCollection /// A from which the contents are copied ///
return System

GetEnumerator() public method

Returns an enumerator that can iterate through the .
public GetEnumerator ( ) : DescriptorEnumerator
return DescriptorEnumerator

IndexOf() public method

Returns the index of a in the .
public IndexOf ( Descriptor val ) : int
val Descriptor The to locate.
return int

Insert() public method

Inserts a into the at the specified index.
public Insert ( int index, Descriptor val ) : void
index int The zero-based index where should be inserted.
val Descriptor The to insert.
return void

Remove() public method

Removes a specific from the .
is not found in the Collection.
public Remove ( Descriptor val ) : void
val Descriptor The to remove from the .
return void

this() public method

Represents the entry at the specified index of the .
is outside the valid range of indexes for the collection.
public this ( int index ) : Descriptor
index int The zero-based index of the entry to locate in the collection.
return Descriptor