Click or drag to resize
AlgorithmsToStringT Method (IEnumerableT, Boolean, String, String, String)
Gets a string representation of the elements in the collection. The string to used at the beginning and end, and to separate items, and supplied by parameters. Each item in the collection is converted to a string by calling its ToString method (null is represented by "null").

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static string ToString<T>(
	IEnumerable<T> collection,
	bool recursive,
	string start,
	string separator,
	string end
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
A collection to get the string representation of.
recursive
Type: SystemBoolean
If true, contained collections (except strings) are converted to strings by a recursive call to this method, instead of by calling ToString.
start
Type: SystemString
The string to appear at the beginning of the output string.
separator
Type: SystemString
The string to appear between each item in the string.
end
Type: SystemString
The string to appear at the end of the output string.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.ToString``1(System.Collections.Generic.IEnumerable{``0},System.Boolean,System.String,System.String,System.String)"]

Return Value

Type: String
The string representation of the collection. If collection is null, then the string "null" is returned.
Exceptions
ExceptionCondition
ArgumentNullExceptionstart, separator, or end is null.
See Also