Skip to content

M_CommandLine_UnParserExtensions_FormatCommandLine__1_1

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

UnParserExtensions.FormatCommandLine(T) Method (Parser, T, Action(UnParserSettings))

Format a command line argument string from a parsed instance.

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

Syntax

C#

public static string FormatCommandLine<T>(
	this Parser parser,
	T options,
	Action<UnParserSettings> configuration
)

VB

<ExtensionAttribute>
Public Shared Function FormatCommandLine(Of T) ( 
	parser As Parser,
	options As T,
	configuration As Action(Of UnParserSettings)
) As String

C++

public:
[ExtensionAttribute]
generic<typename T>
static String^ FormatCommandLine(
	Parser^ parser, 
	T options, 
	Action<UnParserSettings^>^ configuration
)

F#

[<ExtensionAttribute>]
static member FormatCommandLine : 
        parser : Parser * 
        options : 'T * 
        configuration : Action<UnParserSettings> -> string 

Parameters

 

parser
Type: CommandLine.Parser
Parser instance.
options
Type: T
A parsed (or manually correctly constructed instance).
configuration
Type: System.Action(UnParserSettings)
The Action(T) lambda used to configure aspects and behaviors of the unparsersing process.

Type Parameters

 

T
Type of options.

Return Value

Type: String
A string with command line arguments.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Parser. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

UnParserExtensions Class
FormatCommandLine Overload
CommandLine Namespace

Clone this wiki locally