C# Class NAnt.VSNet.ProjectBaseCollection

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

Méthodes publiques

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

Private Methods

Méthode Description
this ( int index ) : ProjectBase
this ( string guid ) : ProjectBase

Method Details

Add() public méthode

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

AddRange() public méthode

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

AddRange() public méthode

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

Contains() public méthode

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

Contains() public méthode

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

GetEnumerator() public méthode

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

IndexOf() public méthode

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

Insert() public méthode

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

ProjectBaseCollection() public méthode

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

ProjectBaseCollection() public méthode

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

ProjectBaseCollection() public méthode

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

Remove() public méthode

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

Remove() public méthode

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