M_CommandLine_UnParserExtensions_FormatCommandLine__1_1 - adutton/commandline GitHub Wiki
Format a command line argument string from a parsed instance.
Namespace: CommandLine
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
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 StringC++
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
- 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.
- T
- Type of options.
Type: String
A string with command line arguments.
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).
UnParserExtensions Class
FormatCommandLine Overload
CommandLine Namespace