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.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static string ToString<T>(
IEnumerable<T> collection,
bool recursive,
string start,
string separator,
string end
)
public:
generic<typename T>
static String^ ToString(
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:
StringThe string representation of the collection. If
collection is null, then the string "null" is returned.
Exceptions
See Also