C# Класс NAnt.DotNet.Types.DataTypeCollectionBase

Base class for collections that needs to be globally referencable.
Наследование: NAnt.Core.DataTypeBase, ICollection
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
IEnumerable IEnumerator

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

Метод Описание
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.

Защищенные методы

Метод Описание
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.

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

Метод Описание
IEnumerable ( ) : IEnumerator

Returns an enumerator that can iterate through a collection.

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

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

Removes all items from the collection.
public Clear ( ) : void
Результат void

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

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.
Результат void

DataTypeCollectionBase() защищенный Метод

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

RangeCheck() защищенный Метод

Checks whether the specified index is within the range of this collection.
protected RangeCheck ( int index ) : void
index int The index to check.
Результат void

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

Removes an item at a specific index.
public RemoveAt ( int index ) : void
index int The zero-based index of the item to remove.
Результат void

ValidateType() защищенный Метод

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.
Результат void