C# Класс NAnt.VSNet.ProjectBaseCollection

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

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

Метод Описание
Add ( ProjectBase item ) : int

Adds a ProjectBase to the end of the collection.

AddRange ( ProjectBase items ) : void

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

AddRange ( ProjectBaseCollection items ) : void

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

Contains ( ProjectBase item ) : bool

Determines whether a ProjectBase is in the collection.

Contains ( string value ) : bool

Determines whether a ProjectBase with the specified GUID is in the collection, using a case-insensitive lookup.

CopyTo ( ProjectBase array, int index ) : void

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

GetEnumerator ( ) : ProjectBaseEnumerator

Returns an enumerator that can iterate through the collection.

IndexOf ( ProjectBase item ) : int

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

Insert ( int index, ProjectBase item ) : void

Inserts a ProjectBase into the collection at the specified index.

ProjectBaseCollection ( ) : System

Initializes a new instance of the ProjectBaseCollection class.

ProjectBaseCollection ( ProjectBase value ) : System

Initializes a new instance of the ProjectBaseCollection class with the specified array of ProjectBase instances.

ProjectBaseCollection ( ProjectBaseCollection value ) : System

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

Remove ( ProjectBase item ) : void

Removes a member from the collection.

Remove ( string guid ) : void

Remove items with the specified guid from the collection.

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

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

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

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

Adds a ProjectBase to the end of the collection.
public Add ( ProjectBase item ) : int
item ProjectBase The to be added to the end of the collection.
Результат int

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

Adds the elements of a ProjectBase array to the end of the collection.
public AddRange ( ProjectBase items ) : void
items ProjectBase The array of elements to be added to the end of the collection.
Результат void

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

Adds the elements of a ProjectBaseCollection to the end of the collection.
public AddRange ( ProjectBaseCollection items ) : void
items ProjectBaseCollection The to be added to the end of the collection.
Результат void

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

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

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

Determines whether a ProjectBase with the specified GUID is in the collection, using a case-insensitive lookup.
public Contains ( string value ) : bool
value string The GUID 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 ( ProjectBase array, int index ) : void
array ProjectBase 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 ( ) : ProjectBaseEnumerator
Результат ProjectBaseEnumerator

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

Retrieves the index of a specified ProjectBase object in the collection.
public IndexOf ( ProjectBase item ) : int
item ProjectBase The object for which the index is returned.
Результат int

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

Inserts a ProjectBase into the collection at the specified index.
public Insert ( int index, ProjectBase item ) : void
index int The zero-based index at which should be inserted.
item ProjectBase The to insert.
Результат void

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

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

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

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

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

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

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

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

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

Remove items with the specified guid from the collection.
public Remove ( string guid ) : void
guid string The guid of the project to remove from the collection.
Результат void