Mono.Options.OptionValueCollection Class
A collection of string values to use as values to Option.OnParseComplete(OptionContext).

See Also: OptionValueCollection Members

Syntax

public class OptionValueCollection : ICollection<string>, IEnumerable<string>, IList<string>, IList

Remarks

A Mono.Options.OptionValueCollection instance is tied to a controlling Mono.Options.OptionContext instance, and its behavior is tied to the Mono.Options.Option that the OptionContext.Option property returns.

If OptionContext.Option refers to an Mono.Options.Option with an Mono.Options.OptionValueType of OptionValueType.Optional, then the OptionValueCollection.Item(int) indexer will return null if index is less than Option.MaxValueCount and index is otherwise invalid (i.e. there hasn't been a string Added for that index.

Otherwise, this instance behaves like List<string>.

Requirements

Namespace: Mono.Options
Assembly: Mono.Options (in Mono.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.2.3.0