NAnt SDK Documentation - v0.92 |

# ModuleCollection Constructor

Initializes a new instance of the ModuleCollection for the specified ModuleSet.

[Visual Basic]
Public Sub New( _
ByVal moduleSet As ModuleSet _
)
[C#]
public ModuleCollection(
ModuleSet moduleSet
);

#### Parameters

moduleSet
  The ModuleSet containing the collection.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentNullException | moduleSet is true.

#### See Also

ModuleCollection Class | NAnt.DotNet.Types Namespace