Click or drag to resize

OptionSet Class

Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionOption
    System.Collections.ObjectModelKeyedCollectionString, Option
      NDesk.OptionsOptionSet

Namespace:  NDesk.Options
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public class OptionSet : KeyedCollection<string, Option>

The OptionSet type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyComparer
Gets the generic equality comparer that is used to determine equality of keys in the collection.
(Inherited from KeyedCollectionString, Option.)
Public propertyCount
Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionOption.)
Protected propertyDictionary
Gets the lookup dictionary of the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, Option.)
Public propertyItemTKey
Gets the element with the specified key.
(Inherited from KeyedCollectionString, Option.)
Public propertyItemInt32
Gets or sets the element at the specified index.
(Inherited from CollectionOption.)
Protected propertyItems
Gets a IListT wrapper around the CollectionT.
(Inherited from CollectionOption.)
Public propertyMessageLocalizer
Top
Methods
  NameDescription
Public methodAdd(Option)
Public methodAdd(String, OptionActionString, String)
Public methodAdd(String, ActionString)
Public methodAdd(String, String, OptionActionString, String)
Public methodAdd(String, String, ActionString)
Public methodAddT(String, ActionT)
Public methodAddT(String, String, ActionT)
Public methodAddTKey, TValue(String, OptionActionTKey, TValue)
Public methodAddTKey, TValue(String, String, OptionActionTKey, TValue)
Protected methodChangeItemKey
Changes the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollectionString, Option.)
Public methodClear
Removes all elements from the CollectionT.
(Inherited from CollectionOption.)
Protected methodClearItems
Removes all elements from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, Option.)
Public methodContains(TKey)
Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollectionString, Option.)
Public methodContains(T)
Determines whether an element is in the CollectionT.
(Inherited from CollectionOption.)
Public methodCopyTo
Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionOption.)
Protected methodCreateOptionContext
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionOption.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetKeyForItem (Overrides KeyedCollectionTKey, TItemGetKeyForItem(TItem).)
Protected methodGetOptionForName Obsolete.
Protected methodGetOptionParts
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionOption.)
Public methodInsert
Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionOption.)
Protected methodInsertItem (Overrides KeyedCollectionTKey, TItemInsertItem(Int32, TItem).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodParse(IEnumerableString)
Protected methodParse(String, OptionContext)
Public methodRemove(TKey)
Removes the element with the specified key from the KeyedCollectionTKey, TItem.
(Inherited from KeyedCollectionString, Option.)
Public methodRemove(T)
Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionOption.)
Public methodRemoveAt
Removes the element at the specified index of the CollectionT.
(Inherited from CollectionOption.)
Protected methodRemoveItem (Overrides KeyedCollectionTKey, TItemRemoveItem(Int32).)
Protected methodSetItem (Overrides KeyedCollectionTKey, TItemSetItem(Int32, TItem).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteOptionDescriptions
Top
See Also