Skip to content

M_CommandLine_Infrastructure_StringBuilderExtensions_AppendWhen

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

StringBuilderExtensions.AppendWhen Method (StringBuilder, Boolean, Char[])

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

Syntax

C#

public static StringBuilder AppendWhen(
	this StringBuilder builder,
	bool condition,
	params char[] values
)

VB

<ExtensionAttribute>
Public Shared Function AppendWhen ( 
	builder As StringBuilder,
	condition As Boolean,
	ParamArray values As Char()
) As StringBuilder

C++

public:
[ExtensionAttribute]
static StringBuilder^ AppendWhen(
	StringBuilder^ builder, 
	bool condition, 
	... array<wchar_t>^ values
)

F#

[<ExtensionAttribute>]
static member AppendWhen : 
        builder : StringBuilder * 
        condition : bool * 
        values : char[] -> StringBuilder 

Parameters

 

builder
Type: System.Text.StringBuilder
condition
Type: System.Boolean
values
Type: System.Char[]

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
AppendWhen Overload
CommandLine.Infrastructure Namespace

Clone this wiki locally