ListExtensions ToTrimmedTokenString TSource  Method (IEnumerable TSource , String)CleanCode C# Libraries v1.2.03 API
Joins a list of strings into a single string with a custom separator, normalizing whitespace in the process.

Namespace: CleanCode.Data
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public static string ToTrimmedTokenString<TSource>(
	this IEnumerable<TSource> list,
	string separator
)

Parameters

list
Type: OnlineSystem.Collections.Generic IEnumerable TSource 
The list to trim.
separator
Type: OnlineSystem String
The separator.
Type Parameters

TSource
The generic type.

Return Value

String containing custom separated list items.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineIEnumerable TSource . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
Remarks

All multiple sequences of any whitespace characters are replaced by a single space.
See Also