镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

M_CommandLine_Core_InstanceChooser_Choose

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

InstanceChooser.Choose Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static ParserResult<Object> Choose(
	Func<IEnumerable<string>, IEnumerable<OptionSpecification>, Result<IEnumerable<Token>, Error>> tokenizer,
	IEnumerable<Type> types,
	IEnumerable<string> arguments,
	StringComparer nameComparer,
	bool ignoreValueCase,
	CultureInfo parsingCulture,
	bool autoHelp,
	bool autoVersion,
	IEnumerable<ErrorType> nonFatalErrors
)

VB

Public Shared Function Choose ( 
	tokenizer As Func(Of IEnumerable(Of String), IEnumerable(Of OptionSpecification), Result(Of IEnumerable(Of Token), Error)),
	types As IEnumerable(Of Type),
	arguments As IEnumerable(Of String),
	nameComparer As StringComparer,
	ignoreValueCase As Boolean,
	parsingCulture As CultureInfo,
	autoHelp As Boolean,
	autoVersion As Boolean,
	nonFatalErrors As IEnumerable(Of ErrorType)
) As ParserResult(Of Object)

C++

public:
static ParserResult<Object^>^ Choose(
	Func<IEnumerable<String^>^, IEnumerable<OptionSpecification^>^, Result<IEnumerable<Token^>^, Error^>^>^ tokenizer, 
	IEnumerable<Type^>^ types, 
	IEnumerable<String^>^ arguments, 
	StringComparer^ nameComparer, 
	bool ignoreValueCase, 
	CultureInfo^ parsingCulture, 
	bool autoHelp, 
	bool autoVersion, 
	IEnumerable<ErrorType>^ nonFatalErrors
)

F#

static member Choose : 
        tokenizer : Func<IEnumerable<string>, IEnumerable<OptionSpecification>, Result<IEnumerable<Token>, Error>> * 
        types : IEnumerable<Type> * 
        arguments : IEnumerable<string> * 
        nameComparer : StringComparer * 
        ignoreValueCase : bool * 
        parsingCulture : CultureInfo * 
        autoHelp : bool * 
        autoVersion : bool * 
        nonFatalErrors : IEnumerable<ErrorType> -> ParserResult<Object> 

Parameters

 

tokenizer
Type: System.Func(IEnumerable(String), IEnumerable(OptionSpecification), Result(IEnumerable(Token), Error))
types
Type: System.Collections.Generic.IEnumerable(Type)
arguments
Type: System.Collections.Generic.IEnumerable(String)
nameComparer
Type: System.StringComparer
ignoreValueCase
Type: System.Boolean
parsingCulture
Type: System.Globalization.CultureInfo
autoHelp
Type: System.Boolean
autoVersion
Type: System.Boolean
nonFatalErrors
Type: System.Collections.Generic.IEnumerable(ErrorType)

Return Value

Type: ParserResult(Object)

See Also

Reference

InstanceChooser Class
CommandLine.Core Namespace

Clone this wiki locally