C# Class NAnt.NUnit2.Types.CategoryCollection

Inheritance: System.Collections.CollectionBase
Afficher le fichier Open project: skolima/NAnt Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
this ( int index ) : Category
this ( string value ) : Category

Method Details

Add() public méthode

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.
Résultat int

AddRange() public méthode

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.
Résultat void

AddRange() public méthode

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.
Résultat void

CategoryCollection() public méthode

Initializes a new instance of the CategoryCollection class.
public CategoryCollection ( ) : System
Résultat System

CategoryCollection() public méthode

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

CategoryCollection() public méthode

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

Contains() public méthode

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

Contains() public méthode

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.
Résultat bool

CopyTo() public méthode

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.
Résultat void

GetEnumerator() public méthode

Returns an enumerator that can iterate through the collection.
public GetEnumerator ( ) : CategoryEnumerator
Résultat CategoryEnumerator

IndexOf() public méthode

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.
Résultat int

Insert() public méthode

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.
Résultat void

Remove() public méthode

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

ToString() public méthode

Returns a comma-delimited list of categories.
public ToString ( ) : string
Résultat string