NAnt SDK Documentation - v0.92 |

# ModuleCollection Methods

The methods of the ModuleCollection class are listed below. For a complete list of ModuleCollection class members, see the ModuleCollection Members topic.

#### Public Instance Methods

Add | Adds a Module to the end of the collection.
AddRange | Adds the items of a ModuleCollection to the end of the collection.
Clear | Removes all items from the collection.
Contains | Determines whether a Module is in the collection.
CopyTo | Copies the items of the collection to an Array, starting at a particular index.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
GetEnumerator | Returns an enumerator that can iterate through the collection.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type.
GetType (inherited from Object) | Gets the Type of the current instance.
IndexOf | Gets the location of a Module in the collection.
Insert | Inserts a Module into the collection at the specified index.
Remove | Removes the specified Module from the collection.
RemoveAt | Removes an item at a specific index.
ToString (inherited from Object) | Returns a String that represents the current Object.

#### Protected Instance Methods

Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.

#### See Also

ModuleCollection Class | NAnt.DotNet.Types Namespace