OptionCollection Class

Summary

Contains a collection of NAnt.Core.Types.Option elements.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Types
Base Types
  • CollectionBase
graph BT Type-->Base0["CollectionBase"] Type["OptionCollection"] class Type type-node

Syntax

[Serializable()]
public class OptionCollection : CollectionBase

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
OptionCollection() Initializes a new instance of the NAnt.Core.Types.OptionCollection class.
OptionCollection(Option[]) Initializes a new instance of the NAnt.Core.Types.OptionCollection class with the specified array of NAnt.Core.Types.Option instances.
OptionCollection(OptionCollection) Initializes a new instance of the NAnt.Core.Types.OptionCollection class with the specified NAnt.Core.Types.OptionCollection instance.

Properties

Name Value Summary
this[int] Option
Gets or sets the element at the specified index.
this[string] Option
Gets the NAnt.Core.Types.Option with the specified name.

Methods

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