ModuleCollection Class

Summary

Contains a collection of NAnt.DotNet.Types.Module items.
Assembly
NAnt.DotNet.dll
Namespace
NAnt.DotNet.Types
Interfaces
  • IList
  • IEnumerable
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IList"] Type-.->Interface1["IEnumerable"] Type["ModuleCollection"] class Type type-node

Syntax

[Serializable()]
public class ModuleCollection : IList, IEnumerable

Remarks

Do not yet expose this to build authors.

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
ModuleCollection(ModuleSet) Initializes a new instance of the NAnt.DotNet.Types.ModuleCollection for the specified NAnt.DotNet.Types.ModuleSet.

Properties

Name Value Summary
Count int
Gets the number of items in the collection.
IsFixedSize bool
Gets a value indicating whether the collection has a fixed size.
IsReadOnly bool
Gets a value indicating whether the collection has a fixed size.
List ArrayList
Gets the list of elements contained in the NAnt.DotNet.Types.ModuleCollection instance.
this[int] Module
Gets or sets the item at the specified index.

Methods

Name Value Summary
Add(Module) int
Adds a NAnt.DotNet.Types.Module to the end of the collection.
AddRange(ModuleCollection) void
Adds the items of a NAnt.DotNet.Types.ModuleCollection to the end of the collection.
Clear() void
Removes all items from the collection.
Contains(Module) bool
Determines whether a NAnt.DotNet.Types.Module is in the collection.
CopyTo(Array, int) void
Copies the items of the collection to an System.Array, starting at a particular index.
GetEnumerator() ModuleEnumerator
Returns an enumerator that can iterate through the collection.
IndexOf(Module) int
Gets the location of a NAnt.DotNet.Types.Module in the collection.
Insert(int, Module) void
Inserts a NAnt.DotNet.Types.Module into the collection at the specified index.
Remove(Module) void
Removes the specified NAnt.DotNet.Types.Module from the collection.
RemoveAt(int) void
Removes an item at a specific index.