C# Class NAnt.NUnit2.Types.CategoryCollection

Inheritance: System.Collections.CollectionBase
Datei anzeigen Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
Add ( Category item ) : int

Adds a Category to the end of the collection.

AddRange ( Category items ) : void

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

AddRange ( CategoryCollection items ) : void

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

CategoryCollection ( ) : System

Initializes a new instance of the CategoryCollection class.

CategoryCollection ( Category value ) : System

Initializes a new instance of the CategoryCollection class with the specified array of Category instances.

CategoryCollection ( CategoryCollection value ) : System

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

Contains ( Category item ) : bool

Determines whether a Category is in the collection.

Contains ( string value ) : bool

Determines whether a Category with the specified value is in the collection.

CopyTo ( Category array, int index ) : void

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

GetEnumerator ( ) : CategoryEnumerator

Returns an enumerator that can iterate through the collection.

IndexOf ( Category item ) : int

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

Insert ( int index, Category item ) : void

Inserts a Category into the collection at the specified index.

Remove ( Category item ) : void

Removes a member from the collection.

ToString ( ) : string

Returns a comma-delimited list of categories.

Private Methods

Method Description
this ( int index ) : Category
this ( string value ) : Category

Method Details

Add() public method

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

AddRange() public method

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

AddRange() public method

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

CategoryCollection() public method

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

CategoryCollection() public method

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

CategoryCollection() public method

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

Contains() public method

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

Contains() public method

Determines whether a Category with the specified value is in the collection.
public Contains ( string value ) : bool
value string The argument value 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 ( Category array, int index ) : void
array Category 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 ( ) : CategoryEnumerator
return CategoryEnumerator

IndexOf() public method

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

Insert() public method

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

Remove() public method

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

ToString() public method

Returns a comma-delimited list of categories.
public ToString ( ) : string
return string