Skip to content

M_CommandLine_UnParserExtensions_FormatCommandLine__1

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

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

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
)

VB

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

C++

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

F#

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

Parameters

 

parser
Type: CommandLine.Parser
Parser instance.
options
Type: T
A parsed (or manually correctly constructed instance).

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