Search Results for

    Show / Hide Table of Contents

    Class OptionSet

    Inheritance
    object
    Collection<Option>
    KeyedCollection<string, Option>
    OptionSet
    CommandLineOptions
    Implements
    IList<Option>
    ICollection<Option>
    IList
    ICollection
    IReadOnlyList<Option>
    IReadOnlyCollection<Option>
    IEnumerable<Option>
    IEnumerable
    Inherited Members
    KeyedCollection<string, Option>.Contains(string)
    KeyedCollection<string, Option>.TryGetValue(string, out Option)
    KeyedCollection<string, Option>.Remove(string)
    KeyedCollection<string, Option>.ChangeItemKey(Option, string)
    KeyedCollection<string, Option>.ClearItems()
    KeyedCollection<string, Option>.GetKeyForItem(Option)
    KeyedCollection<string, Option>.InsertItem(int, Option)
    KeyedCollection<string, Option>.RemoveItem(int)
    KeyedCollection<string, Option>.SetItem(int, Option)
    KeyedCollection<string, Option>.Comparer
    KeyedCollection<string, Option>.this[string]
    KeyedCollection<string, Option>.Dictionary
    Collection<Option>.Clear()
    Collection<Option>.CopyTo(Option[], int)
    Collection<Option>.Contains(Option)
    Collection<Option>.GetEnumerator()
    Collection<Option>.IndexOf(Option)
    Collection<Option>.Insert(int, Option)
    Collection<Option>.Remove(Option)
    Collection<Option>.RemoveAt(int)
    Collection<Option>.ClearItems()
    Collection<Option>.Count
    Collection<Option>.Items
    Collection<Option>.this[int]
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Options
    Assembly: nunitlite.dll
    Syntax
    public class OptionSet : KeyedCollection<string, Option>, IList<Option>, ICollection<Option>, IList, ICollection, IReadOnlyList<Option>, IReadOnlyCollection<Option>, IEnumerable<Option>, IEnumerable

    Constructors

    View Source

    OptionSet()

    Declaration
    public OptionSet()

    Methods

    View Source

    Add(Option)

    Declaration
    public OptionSet Add(Option option)
    Parameters
    Type Name Description
    Option option
    Returns
    Type Description
    OptionSet
    View Source

    Add(string, OptionAction<string, string>)

    Declaration
    public OptionSet Add(string prototype, OptionAction<string, string> action)
    Parameters
    Type Name Description
    string prototype
    OptionAction<string, string> action
    Returns
    Type Description
    OptionSet
    View Source

    Add(string, Action<string>)

    Declaration
    public OptionSet Add(string prototype, Action<string> action)
    Parameters
    Type Name Description
    string prototype
    Action<string> action
    Returns
    Type Description
    OptionSet
    View Source

    Add(string, string, OptionAction<string, string>)

    Declaration
    public OptionSet Add(string prototype, string description, OptionAction<string, string> action)
    Parameters
    Type Name Description
    string prototype
    string description
    OptionAction<string, string> action
    Returns
    Type Description
    OptionSet
    View Source

    Add(string, string, Action<string>)

    Declaration
    public OptionSet Add(string prototype, string description, Action<string> action)
    Parameters
    Type Name Description
    string prototype
    string description
    Action<string> action
    Returns
    Type Description
    OptionSet
    View Source

    Add<T>(string, Action<T>)

    Declaration
    public OptionSet Add<T>(string prototype, Action<T> action)
    Parameters
    Type Name Description
    string prototype
    Action<T> action
    Returns
    Type Description
    OptionSet
    Type Parameters
    Name Description
    T
    View Source

    Add<T>(string, string, Action<T>)

    Declaration
    public OptionSet Add<T>(string prototype, string description, Action<T> action)
    Parameters
    Type Name Description
    string prototype
    string description
    Action<T> action
    Returns
    Type Description
    OptionSet
    Type Parameters
    Name Description
    T
    View Source

    Add<TKey, TValue>(string, OptionAction<TKey, TValue>)

    Declaration
    public OptionSet Add<TKey, TValue>(string prototype, OptionAction<TKey, TValue> action)
    Parameters
    Type Name Description
    string prototype
    OptionAction<TKey, TValue> action
    Returns
    Type Description
    OptionSet
    Type Parameters
    Name Description
    TKey
    TValue
    View Source

    Add<TKey, TValue>(string, string, OptionAction<TKey, TValue>)

    Declaration
    public OptionSet Add<TKey, TValue>(string prototype, string description, OptionAction<TKey, TValue> action)
    Parameters
    Type Name Description
    string prototype
    string description
    OptionAction<TKey, TValue> action
    Returns
    Type Description
    OptionSet
    Type Parameters
    Name Description
    TKey
    TValue
    View Source

    CreateOptionContext()

    Declaration
    protected virtual OptionContext CreateOptionContext()
    Returns
    Type Description
    OptionContext
    View Source

    GetKeyForItem(Option)

    Declaration
    protected override string GetKeyForItem(Option item)
    Parameters
    Type Name Description
    Option item
    Returns
    Type Description
    string
    Overrides
    KeyedCollection<string, Option>.GetKeyForItem(Option)
    View Source

    GetOptionParts(string, out string, out string, out string, out string)

    Declaration
    protected bool GetOptionParts(string argument, out string flag, out string name, out string sep, out string value)
    Parameters
    Type Name Description
    string argument
    string flag
    string name
    string sep
    string value
    Returns
    Type Description
    bool
    View Source

    InsertItem(int, Option)

    Declaration
    protected override void InsertItem(int index, Option item)
    Parameters
    Type Name Description
    int index
    Option item
    Overrides
    KeyedCollection<string, Option>.InsertItem(int, Option)
    View Source

    MessageLocalizer(string)

    Declaration
    public string MessageLocalizer(string msg)
    Parameters
    Type Name Description
    string msg
    Returns
    Type Description
    string
    View Source

    Parse(IEnumerable<string>)

    Declaration
    public List<string> Parse(IEnumerable<string> arguments)
    Parameters
    Type Name Description
    IEnumerable<string> arguments
    Returns
    Type Description
    List<string>
    View Source

    Parse(string, OptionContext)

    Declaration
    protected virtual bool Parse(string argument, OptionContext c)
    Parameters
    Type Name Description
    string argument
    OptionContext c
    Returns
    Type Description
    bool
    View Source

    RemoveItem(int)

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    int index
    Overrides
    KeyedCollection<string, Option>.RemoveItem(int)
    View Source

    SetItem(int, Option)

    Declaration
    protected override void SetItem(int index, Option item)
    Parameters
    Type Name Description
    int index
    Option item
    Overrides
    KeyedCollection<string, Option>.SetItem(int, Option)
    View Source

    WriteOptionDescriptions(TextWriter)

    Declaration
    public void WriteOptionDescriptions(TextWriter o)
    Parameters
    Type Name Description
    TextWriter o

    Implements

    IList<T>
    ICollection<T>
    IList
    ICollection
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0