Click or drag to resize

StringBuilderExtensionsAppendWithSeparator Method

Appends non-null and non-empty text, separating it from any existing text with a string.

Namespace:  System.Text
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
public static void AppendWithSeparator(
	this StringBuilder sb,
	string text,
	string separator = ""


Type: System.TextStringBuilder
The StringBuilder.
Type: SystemString
The text to be appended.
separator (Optional)
Type: SystemString
The separator string, this defaults to a single space.

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).
Note Note
The separator string will not be appended if text is null or empty.
See Also