PackageCollection Class

Summary

Contains a strongly typed collection of NAnt.DotNet.Types.Package objects.
Assembly
NAnt.DotNet.dll
Namespace
NAnt.DotNet.Types
Base Types
  • CollectionBase
graph BT Type-->Base0["CollectionBase"] Type["PackageCollection"] class Type type-node

Syntax

[Serializable()]
public class PackageCollection : CollectionBase

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
PackageCollection() Initializes a new instance of the NAnt.DotNet.Types.PackageCollection class.
PackageCollection(Package[]) Initializes a new instance of the NAnt.DotNet.Types.PackageCollection class with the specified array of NAnt.DotNet.Types.Package instances.
PackageCollection(PackageCollection) Initializes a new instance of the NAnt.DotNet.Types.PackageCollection class with the specified NAnt.DotNet.Types.PackageCollection instance.

Properties

Name Value Summary
this[int] Package
Gets or sets the element at the specified index.

Methods

Name Value Summary
Add(Package) int
Adds a NAnt.DotNet.Types.Package to the end of the collection.
AddRange(Package[]) void
Adds the elements of a NAnt.DotNet.Types.Package array to the end of the collection.
AddRange(PackageCollection) void
Adds the elements of a NAnt.DotNet.Types.PackageCollection to the end of the collection.
Contains(Package) bool
Determines whether a NAnt.DotNet.Types.Package is in the collection.
CopyTo(Package[], int) void
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
GetEnumerator() PackageEnumerator
Returns an enumerator that can iterate through the collection.
IndexOf(Package) int
Retrieves the index of a specified NAnt.DotNet.Types.Package object in the collection.
Insert(int, Package) void
Inserts a NAnt.DotNet.Types.Package into the collection at the specified index.
Remove(Package) void
Removes a member from the collection.