C# Класс NAnt.NUnit2.Types.CategoryCollection

Наследование: System.Collections.CollectionBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
this ( int index ) : Category
this ( string value ) : Category

Описание методов

Add() публичный Метод

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.
Результат int

AddRange() публичный Метод

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.
Результат void

AddRange() публичный Метод

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.
Результат void

CategoryCollection() публичный Метод

Initializes a new instance of the CategoryCollection class.
public CategoryCollection ( ) : System
Результат System

CategoryCollection() публичный Метод

Initializes a new instance of the CategoryCollection class with the specified array of Category instances.
public CategoryCollection ( Category value ) : System
value Category
Результат System

CategoryCollection() публичный Метод

Initializes a new instance of the CategoryCollection class with the specified CategoryCollection instance.
public CategoryCollection ( CategoryCollection value ) : System
value CategoryCollection
Результат System

Contains() публичный Метод

Determines whether a Category is in the collection.
public Contains ( Category item ) : bool
item Category The to locate in the collection.
Результат bool

Contains() публичный Метод

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.
Результат bool

CopyTo() публичный Метод

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.
Результат void

GetEnumerator() публичный Метод

Returns an enumerator that can iterate through the collection.
public GetEnumerator ( ) : CategoryEnumerator
Результат CategoryEnumerator

IndexOf() публичный Метод

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.
Результат int

Insert() публичный Метод

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.
Результат void

Remove() публичный Метод

Removes a member from the collection.
public Remove ( Category item ) : void
item Category The to remove from the collection.
Результат void

ToString() публичный Метод

Returns a comma-delimited list of categories.
public ToString ( ) : string
Результат string