Skip to content

M_CommandLine_Infrastructure_StringBuilderExtensions_AppendFormatWhen

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

StringBuilderExtensions.AppendFormatWhen Method

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

Syntax

C#

public static StringBuilder AppendFormatWhen(
	this StringBuilder builder,
	bool condition,
	string format,
	params Object[] args
)

VB

<ExtensionAttribute>
Public Shared Function AppendFormatWhen ( 
	builder As StringBuilder,
	condition As Boolean,
	format As String,
	ParamArray args As Object()
) As StringBuilder

C++

public:
[ExtensionAttribute]
static StringBuilder^ AppendFormatWhen(
	StringBuilder^ builder, 
	bool condition, 
	String^ format, 
	... array<Object^>^ args
)

F#

[<ExtensionAttribute>]
static member AppendFormatWhen : 
        builder : StringBuilder * 
        condition : bool * 
        format : string * 
        args : Object[] -> StringBuilder 

Parameters

 

builder
Type: System.Text.StringBuilder
condition
Type: System.Boolean
format
Type: System.String
args
Type: System.Object[]

Return Value

Type: StringBuilder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StringBuilder. 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

StringBuilderExtensions Class
CommandLine.Infrastructure Namespace

Clone this wiki locally