C# Class NAnt.DotNet.Types.DataTypeCollectionBase

Base class for collections that needs to be globally referencable.
Inheritance: NAnt.Core.DataTypeBase, ICollection
Afficher le fichier Open project: skolima/NAnt

Private Properties

Свойство Type Description
IEnumerable IEnumerator

Méthodes publiques

Méthode Description
Clear ( ) : void

Removes all items from the collection.

CopyTo ( Array array, int index ) : void

Copies the items of the collection to an Array, starting at a particular index.

RemoveAt ( int index ) : void

Removes an item at a specific index.

Méthodes protégées

Méthode Description
DataTypeCollectionBase ( ) : System

Initializes a new instance of the DataTypeCollectionBase class.

RangeCheck ( int index ) : void

Checks whether the specified index is within the range of this collection.

ValidateType ( object value ) : void

Used by methods that take object instances as argument to verify whether the instance is valid for the collection class.

Private Methods

Méthode Description
IEnumerable ( ) : IEnumerator

Returns an enumerator that can iterate through a collection.

Method Details

Clear() public méthode

Removes all items from the collection.
public Clear ( ) : void
Résultat void

CopyTo() public méthode

Copies the items of the collection to an Array, starting at a particular index.
public CopyTo ( Array array, int index ) : void
array System.Array The one-dimensional that is the destination of the items copied from the collection. The must have zero-based indexing.
index int The zero-based index in at which copying begins.
Résultat void

DataTypeCollectionBase() protected méthode

Initializes a new instance of the DataTypeCollectionBase class.
protected DataTypeCollectionBase ( ) : System
Résultat System

RangeCheck() protected méthode

Checks whether the specified index is within the range of this collection.
protected RangeCheck ( int index ) : void
index int The index to check.
Résultat void

RemoveAt() public méthode

Removes an item at a specific index.
public RemoveAt ( int index ) : void
index int The zero-based index of the item to remove.
Résultat void

ValidateType() protected méthode

Used by methods that take object instances as argument to verify whether the instance is valid for the collection class.
protected ValidateType ( object value ) : void
value object The instance to verify.
Résultat void