C# Class NAnt.DotNet.Types.DataTypeCollectionBase

Base class for collections that needs to be globally referencable.
Inheritance: NAnt.Core.DataTypeBase, ICollection
ファイルを表示 Open project: skolima/NAnt

Private Properties

Property Type Description
IEnumerable IEnumerator

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
IEnumerable ( ) : IEnumerator

Returns an enumerator that can iterate through a collection.

Method Details

Clear() public method

Removes all items from the collection.
public Clear ( ) : void
return void

CopyTo() public method

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

DataTypeCollectionBase() protected method

Initializes a new instance of the DataTypeCollectionBase class.
protected DataTypeCollectionBase ( ) : System
return System

RangeCheck() protected method

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

RemoveAt() public method

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

ValidateType() protected method

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