C# Class NAnt.VSNet.ProjectBaseCollection

Inheritance: System.Collections.CollectionBase
Mostrar archivo Open project: skolima/NAnt Class Usage Examples

Public Methods

Method 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

Method Description
this ( int index ) : ProjectBase
this ( string guid ) : ProjectBase

Method Details

Add() public method

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.
return int

AddRange() public method

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.
return void

AddRange() public method

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.
return void

Contains() public method

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

Contains() public method

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.
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 ( 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.
return void

GetEnumerator() public method

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

IndexOf() public method

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.
return int

Insert() public method

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.
return void

ProjectBaseCollection() public method

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

ProjectBaseCollection() public method

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

ProjectBaseCollection() public method

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

Remove() public method

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

Remove() public method

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.
return void