NDesk.Options : NDesk.Options Namespace

NDesk.Options

GIT Repository

OptionValueCollection Class

A collection of string values to use as values to Option.OnParseComplete(OptionContext).

[System.Reflection.DefaultMember("Item")]
public class OptionValueCollection : IList<string>, IList

Remarks

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

If OptionContext.Option refers to an NDesk.Options.Option with an NDesk.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: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

Members

See Also: Inherited members from object.

Public Properties

[read-only]
Count int . Documentation for this section has not yet been entered.
[read-only]
IsReadOnly bool . Documentation for this section has not yet been entered.
default property
Item (int) string . Documentation for this section has not yet been entered.

Public Methods

Add (string)
Documentation for this section has not yet been entered.
Clear ()
Documentation for this section has not yet been entered.
Contains (string) : bool
Documentation for this section has not yet been entered.
CopyTo (string[], int)
Documentation for this section has not yet been entered.
GetEnumerator () : IEnumerator<string>
Documentation for this section has not yet been entered.
IndexOf (string) : int
Documentation for this section has not yet been entered.
Insert (int, string)
Documentation for this section has not yet been entered.
Remove (string) : bool
Documentation for this section has not yet been entered.
RemoveAt (int)
Documentation for this section has not yet been entered.
ToArray () : string[]
Documentation for this section has not yet been entered.
ToList () : List<string>
Documentation for this section has not yet been entered.
override
ToString () : string
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

IList.Add Documentation for this section has not yet been entered.
IList.Contains Documentation for this section has not yet been entered.
ICollection.CopyTo Documentation for this section has not yet been entered.
IEnumerable.GetEnumerator Documentation for this section has not yet been entered.
IList.IndexOf Documentation for this section has not yet been entered.
IList.Insert Documentation for this section has not yet been entered.
[read-only]
IList.IsFixedSize bool . Documentation for this section has not yet been entered.
[read-only]
ICollection.IsSynchronized bool . Documentation for this section has not yet been entered.
IList.Item object . Documentation for this section has not yet been entered.
IList.Remove Documentation for this section has not yet been entered.
IList.RemoveAt Documentation for this section has not yet been entered.
[read-only]
ICollection.SyncRoot object . Documentation for this section has not yet been entered.

Member Details

Add Method

Documentation for this section has not yet been entered.

public void Add (string item)

Parameters

item
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

Clear Method

Documentation for this section has not yet been entered.

public void Clear ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

Contains Method

Documentation for this section has not yet been entered.

public bool Contains (string item)

Parameters

item
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

CopyTo Method

Documentation for this section has not yet been entered.

public void CopyTo (string[] array, int arrayIndex)

Parameters

array
Documentation for this section has not yet been entered.
arrayIndex
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

Count Property

Documentation for this section has not yet been entered.

public int Count { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

GetEnumerator Method

Documentation for this section has not yet been entered.

public IEnumerator<string> GetEnumerator ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

IndexOf Method

Documentation for this section has not yet been entered.

public int IndexOf (string item)

Parameters

item
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

Insert Method

Documentation for this section has not yet been entered.

public void Insert (int index, string item)

Parameters

index
Documentation for this section has not yet been entered.
item
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

IsReadOnly Property

Documentation for this section has not yet been entered.

public bool IsReadOnly { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

Item Property

Documentation for this section has not yet been entered.

This is the default property for this class.

public string this [int index] { set; get; }

Parameters

index
Documentation for this section has not yet been entered.

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

Remove Method

Documentation for this section has not yet been entered.

public bool Remove (string item)

Parameters

item
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

RemoveAt Method

Documentation for this section has not yet been entered.

public void RemoveAt (int index)

Parameters

index
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.ICollection.CopyTo Method

Documentation for this section has not yet been entered.

void System.Collections.ICollection.CopyTo (Array array, int index)

Parameters

array
Documentation for this section has not yet been entered.
index
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.ICollection.IsSynchronized Property

Documentation for this section has not yet been entered.

bool System.Collections.ICollection.IsSynchronized { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.ICollection.SyncRoot Property

Documentation for this section has not yet been entered.

object System.Collections.ICollection.SyncRoot { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IEnumerable.GetEnumerator Method

Documentation for this section has not yet been entered.

IEnumerator System.Collections.IEnumerable.GetEnumerator ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.Add Method

Documentation for this section has not yet been entered.

int System.Collections.IList.Add (object value)

Parameters

value
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.Contains Method

Documentation for this section has not yet been entered.

bool System.Collections.IList.Contains (object value)

Parameters

value
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.IndexOf Method

Documentation for this section has not yet been entered.

int System.Collections.IList.IndexOf (object value)

Parameters

value
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.Insert Method

Documentation for this section has not yet been entered.

void System.Collections.IList.Insert (int index, object value)

Parameters

index
Documentation for this section has not yet been entered.
value
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.IsFixedSize Property

Documentation for this section has not yet been entered.

bool System.Collections.IList.IsFixedSize { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.Item Property

Documentation for this section has not yet been entered.

object this [int index] { set; get; }

Parameters

index
Documentation for this section has not yet been entered.

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.Remove Method

Documentation for this section has not yet been entered.

void System.Collections.IList.Remove (object value)

Parameters

value
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

System.Collections.IList.RemoveAt Method

Documentation for this section has not yet been entered.

void System.Collections.IList.RemoveAt (int index)

Parameters

index
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

ToArray Method

Documentation for this section has not yet been entered.

public string[] ToArray ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

ToList Method

Documentation for this section has not yet been entered.

public List<string> ToList ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0

ToString Method

Documentation for this section has not yet been entered.

public override string ToString ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: NDesk.Options
Assembly: NDesk.Options (in NDesk.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0