Skip to content

M_CommandLine_Core_InstanceBuilder_Build__1

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

InstanceBuilder.Build(T) Method

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

Syntax

C#

public static ParserResult<T> Build<T>(
	Maybe<Func<T>> factory,
	Func<IEnumerable<string>, IEnumerable<OptionSpecification>, Result<IEnumerable<Token>, Error>> tokenizer,
	IEnumerable<string> arguments,
	StringComparer nameComparer,
	bool ignoreValueCase,
	CultureInfo parsingCulture,
	bool autoHelp,
	bool autoVersion,
	IEnumerable<ErrorType> nonFatalErrors
)

VB

Public Shared Function Build(Of T) ( 
	factory As Maybe(Of Func(Of T)),
	tokenizer As Func(Of IEnumerable(Of String), IEnumerable(Of OptionSpecification), Result(Of IEnumerable(Of Token), Error)),
	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 T)

C++

public:
generic<typename T>
static ParserResult<T>^ Build(
	Maybe<Func<T>^>^ factory, 
	Func<IEnumerable<String^>^, IEnumerable<OptionSpecification^>^, Result<IEnumerable<Token^>^, Error^>^>^ tokenizer, 
	IEnumerable<String^>^ arguments, 
	StringComparer^ nameComparer, 
	bool ignoreValueCase, 
	CultureInfo^ parsingCulture, 
	bool autoHelp, 
	bool autoVersion, 
	IEnumerable<ErrorType>^ nonFatalErrors
)

F#

static member Build : 
        factory : Maybe<Func<'T>> * 
        tokenizer : Func<IEnumerable<string>, IEnumerable<OptionSpecification>, Result<IEnumerable<Token>, Error>> * 
        arguments : IEnumerable<string> * 
        nameComparer : StringComparer * 
        ignoreValueCase : bool * 
        parsingCulture : CultureInfo * 
        autoHelp : bool * 
        autoVersion : bool * 
        nonFatalErrors : IEnumerable<ErrorType> -> ParserResult<'T> 

Parameters

 

factory
Type: CSharpx.Maybe(Func(T))
tokenizer
Type: System.Func(IEnumerable(String), IEnumerable(OptionSpecification), Result(IEnumerable(Token), Error))
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)

Type Parameters

 

T

Return Value

Type: ParserResult(T)

See Also

Reference

InstanceBuilder Class
CommandLine.Core Namespace

Clone this wiki locally