OptionSet Class |
Namespace: NDesk.Options
public class OptionSet : KeyedCollection<string, Option>
The OptionSet type exposes the following members.
Name | Description | |
---|---|---|
OptionSet | ||
OptionSet(ConverterString, String) |
Name | Description | |
---|---|---|
Comparer | Gets the generic equality comparer that is used to determine equality of keys in the collection. (Inherited from KeyedCollectionString, Option.) | |
Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionOption.) | |
Dictionary | Gets the lookup dictionary of the KeyedCollectionTKey, TItem. (Inherited from KeyedCollectionString, Option.) | |
ItemTKey | Gets the element with the specified key. (Inherited from KeyedCollectionString, Option.) | |
ItemInt32 | Gets or sets the element at the specified index. (Inherited from CollectionOption.) | |
Items | Gets a IListT wrapper around the CollectionT. (Inherited from CollectionOption.) | |
MessageLocalizer |
Name | Description | |
---|---|---|
Add(Option) | ||
Add(String, OptionActionString, String) | ||
Add(String, ActionString) | ||
Add(String, String, OptionActionString, String) | ||
Add(String, String, ActionString) | ||
AddT(String, ActionT) | ||
AddT(String, String, ActionT) | ||
AddTKey, TValue(String, OptionActionTKey, TValue) | ||
AddTKey, TValue(String, String, OptionActionTKey, TValue) | ||
ChangeItemKey | Changes the key associated with the specified element in the lookup dictionary. (Inherited from KeyedCollectionString, Option.) | |
Clear | Removes all elements from the CollectionT. (Inherited from CollectionOption.) | |
ClearItems | Removes all elements from the KeyedCollectionTKey, TItem. (Inherited from KeyedCollectionString, Option.) | |
Contains(TKey) | Determines whether the collection contains an element with the specified key. (Inherited from KeyedCollectionString, Option.) | |
Contains(T) | Determines whether an element is in the CollectionT. (Inherited from CollectionOption.) | |
CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from CollectionOption.) | |
CreateOptionContext | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the CollectionT. (Inherited from CollectionOption.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetKeyForItem | (Overrides KeyedCollectionTKey, TItemGetKeyForItem(TItem).) | |
GetOptionForName | Obsolete. | |
GetOptionParts | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Inherited from CollectionOption.) | |
Insert | Inserts an element into the CollectionT at the specified index. (Inherited from CollectionOption.) | |
InsertItem | (Overrides KeyedCollectionTKey, TItemInsertItem(Int32, TItem).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Parse(IEnumerableString) | ||
Parse(String, OptionContext) | ||
Remove(TKey) | Removes the element with the specified key from the KeyedCollectionTKey, TItem. (Inherited from KeyedCollectionString, Option.) | |
Remove(T) | Removes the first occurrence of a specific object from the CollectionT. (Inherited from CollectionOption.) | |
RemoveAt | Removes the element at the specified index of the CollectionT. (Inherited from CollectionOption.) | |
RemoveItem | (Overrides KeyedCollectionTKey, TItemRemoveItem(Int32).) | |
SetItem | (Overrides KeyedCollectionTKey, TItemSetItem(Int32, TItem).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteOptionDescriptions |