C# Class NAnt.Core.BuildListenerCollection

Inheritance: System.Collections.CollectionBase
显示文件 Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
Add ( IBuildListener item ) : int

Adds a IBuildListener to the end of the collection.

AddRange ( BuildListenerCollection items ) : void

Adds the elements of a BuildListenerCollection to the end of the collection.

AddRange ( IBuildListener items ) : void

Adds the elements of a IBuildListener array to the end of the collection.

BuildListenerCollection ( ) : System

Initializes a new instance of the BuildListenerCollection class.

BuildListenerCollection ( BuildListenerCollection value ) : System

Initializes a new instance of the BuildListenerCollection class with the specified BuildListenerCollection instance.

BuildListenerCollection ( IBuildListener value ) : System

Initializes a new instance of the BuildListenerCollection class with the specified array of IBuildListener instances.

Contains ( IBuildListener item ) : bool

Determines whether a IBuildListener is in the collection.

CopyTo ( IBuildListener array, int index ) : void

Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.

GetEnumerator ( ) : BuildListenerEnumerator

Returns an enumerator that can iterate through the collection.

IndexOf ( IBuildListener item ) : int

Retrieves the index of a specified IBuildListener object in the collection.

Insert ( int index, IBuildListener item ) : void

Inserts a IBuildListener into the collection at the specified index.

Remove ( IBuildListener item ) : void

Removes a member from the collection.

Private Methods

Method Description
this ( int index ) : IBuildListener

Method Details

Add() public method

Adds a IBuildListener to the end of the collection.
public Add ( IBuildListener item ) : int
item IBuildListener The to be added to the end of the collection.
return int

AddRange() public method

Adds the elements of a BuildListenerCollection to the end of the collection.
public AddRange ( BuildListenerCollection items ) : void
items BuildListenerCollection The to be added to the end of the collection.
return void

AddRange() public method

Adds the elements of a IBuildListener array to the end of the collection.
public AddRange ( IBuildListener items ) : void
items IBuildListener The array of elements to be added to the end of the collection.
return void

BuildListenerCollection() public method

Initializes a new instance of the BuildListenerCollection class.
public BuildListenerCollection ( ) : System
return System

BuildListenerCollection() public method

Initializes a new instance of the BuildListenerCollection class with the specified BuildListenerCollection instance.
public BuildListenerCollection ( BuildListenerCollection value ) : System
value BuildListenerCollection
return System

BuildListenerCollection() public method

Initializes a new instance of the BuildListenerCollection class with the specified array of IBuildListener instances.
public BuildListenerCollection ( IBuildListener value ) : System
value IBuildListener
return System

Contains() public method

Determines whether a IBuildListener is in the collection.
public Contains ( IBuildListener item ) : bool
item IBuildListener The to locate in the collection.
return bool

CopyTo() public method

Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
public CopyTo ( IBuildListener array, int index ) : void
array IBuildListener The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
index int The zero-based index in at which copying begins.
return void

GetEnumerator() public method

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

IndexOf() public method

Retrieves the index of a specified IBuildListener object in the collection.
public IndexOf ( IBuildListener item ) : int
item IBuildListener The object for which the index is returned.
return int

Insert() public method

Inserts a IBuildListener into the collection at the specified index.
public Insert ( int index, IBuildListener item ) : void
index int The zero-based index at which should be inserted.
item IBuildListener The to insert.
return void

Remove() public method

Removes a member from the collection.
public Remove ( IBuildListener item ) : void
item IBuildListener The to remove from the collection.
return void