C# Class NAnt.Core.Types.PatternCollection

Inheritance: IList
Exibir arquivo Open project: skolima/NAnt Class Usage Examples

Private Properties

Property Type Description
ICollection void
IEnumerable IEnumerator
IList bool
IList int
IList void
IList void
IList void
this objectIList.System

Public Methods

Method Description
Add ( Pattern item ) : int

Adds a Pattern to the end of the collection.

AddRange ( Pattern items ) : void

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

AddRange ( PatternCollection items ) : void

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

Clear ( ) : void

Removes all items from the PatternCollection.

Contains ( Pattern item ) : bool

Determines whether a Pattern is in the collection.

CopyTo ( Pattern array, int index ) : void

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

GetEnumerator ( ) : PatternEnumerator

Returns an enumerator that can iterate through the collection.

IndexOf ( Pattern item ) : int

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

Insert ( int index, Pattern item ) : void

Inserts a Pattern into the collection at the specified index.

PatternCollection ( ) : System

Initializes a new instance of the PatternCollection class.

Remove ( Pattern item ) : void

Removes a member from the collection.

this ( int index ) : Pattern

Gets or sets the element at the specified index.

Private Methods

Method Description
ICollection ( Array array, int index ) : void
IEnumerable ( ) : IEnumerator
IList ( object value ) : bool
IList ( object value ) : int
IList ( int index ) : void
IList ( int index, object value ) : void
IList ( object value ) : void
this ( int index ) : objectIList.System

Method Details

Add() public method

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

AddRange() public method

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

AddRange() public method

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

Clear() public method

Removes all items from the PatternCollection.
public Clear ( ) : void
return void

Contains() public method

Determines whether a Pattern is in the collection.
public Contains ( Pattern item ) : bool
item Pattern 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 ( Pattern array, int index ) : void
array Pattern 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 ( ) : PatternEnumerator
return PatternEnumerator

IndexOf() public method

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

Insert() public method

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

PatternCollection() public method

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

Remove() public method

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

this() public method

Gets or sets the element at the specified index.
public this ( int index ) : Pattern
index int The zero-based index of the element to get or set.
return Pattern