AlgorithmsToStringT Method (IEnumerableT) |
Gets a string representation of the elements in the collection.
The string representation starts with "{", has a list of items separated
by commas (","), and ends with "}". Each item in the collection is
converted to a string by calling its ToString method (null is represented by "null").
Contained collections (except strings) are recursively converted to strings by this method.
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
)
public:
generic<typename T>
static String^ ToString(
IEnumerable<T>^ collection
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
A collection to get the string representation of.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.ToString``1(System.Collections.Generic.IEnumerable{``0})"]
Return Value
Type:
StringThe string representation of the collection. If
collection is null, then the string "null" is returned.
See Also