M_CommandLine_Infrastructure_StringBuilderExtensions_AppendIf - adutton/commandline GitHub Wiki
Namespace: CommandLine.Infrastructure
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public static StringBuilder AppendIf(
this StringBuilder builder,
bool condition,
string ifTrue,
string ifFalse
)VB
<ExtensionAttribute>
Public Shared Function AppendIf (
builder As StringBuilder,
condition As Boolean,
ifTrue As String,
ifFalse As String
) As StringBuilderC++
public:
[ExtensionAttribute]
static StringBuilder^ AppendIf(
StringBuilder^ builder,
bool condition,
String^ ifTrue,
String^ ifFalse
)F#
[<ExtensionAttribute>]
static member AppendIf :
builder : StringBuilder *
condition : bool *
ifTrue : string *
ifFalse : string -> StringBuilder
- builder
- Type: System.Text.StringBuilder
- condition
- Type: System.Boolean
- ifTrue
- Type: System.String
- ifFalse
- Type: System.String
Type: StringBuilder
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).
StringBuilderExtensions Class
CommandLine.Infrastructure Namespace