Click or drag to resize

StringHelperAppendWithSpaceIfNotEmpty Method (StringBuilder, String)

Appends toAdd (with a separating space) to stringBuilder, if toAdd is not empty.

Namespace:  Bootstrap.A11y.Helpers
Assembly:  Bootstrap.A11y (in Bootstrap.A11y.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
C#
public static bool AppendWithSpaceIfNotEmpty(
	StringBuilder stringBuilder,
	string toAdd
)

Parameters

stringBuilder
Type: System.TextStringBuilder
The buffer to append to.
toAdd
Type: SystemString
The string to append if not empty.

Return Value

Type: Boolean
Whether toAdd had contents.
See Also