PatternCollection Class

Summary

Contains a collection of NAnt.Core.Types.Pattern elements.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Types
Interfaces
  • IList
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IList"] Type["PatternCollection"] class Type type-node

Syntax

[Serializable()]
public class PatternCollection : IList

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
PatternCollection() Initializes a new instance of the NAnt.Core.Types.PatternCollection class.

Properties

Name Value Summary
Count int
Gets the number of elements contained in the System.Collections.ICollection.
this[int] Pattern
Gets or sets the element at the specified index.

Methods

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