Method ToString
ToString<T>(ICollection<T>)
This is the same implementation of ToString from Java's AbstractCollection
(the default implementation for all sets and lists)
Declaration
public static string ToString<T>(ICollection<T> collection)
Parameters
Type |
Name |
Description |
ICollection<T> |
collection |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
ToString<T>(ICollection<T>, CultureInfo)
This is the same implementation of ToString from Java's AbstractCollection
(the default implementation for all sets and lists), plus the ability
to specify culture for formatting of nested numbers and dates. Note that
this overload will change the culture of the current thread.
Declaration
public static string ToString<T>(ICollection<T> collection, CultureInfo culture)
Parameters
Type |
Name |
Description |
ICollection<T> |
collection |
|
CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
ToString<TKey, TValue>(IDictionary<TKey, TValue>)
This is the same implementation of ToString from Java's AbstractMap
(the default implementation for all dictionaries)
Declaration
public static string ToString<TKey, TValue>(IDictionary<TKey, TValue> dictionary)
Parameters
Type |
Name |
Description |
IDictionary<TKey, TValue> |
dictionary |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
ToString<TKey, TValue>(IDictionary<TKey, TValue>, CultureInfo)
This is the same implementation of ToString from Java's AbstractMap
(the default implementation for all dictionaries), plus the ability
to specify culture for formatting of nested numbers and dates. Note that
this overload will change the culture of the current thread.
Declaration
public static string ToString<TKey, TValue>(IDictionary<TKey, TValue> dictionary, CultureInfo culture)
Parameters
Type |
Name |
Description |
IDictionary<TKey, TValue> |
dictionary |
|
CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
ToString(Object)
This is a helper method that assists with recursively building
a string of the current collection and all nested collections.
Declaration
public static string ToString(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.String |
|
ToString(Object, CultureInfo)
This is a helper method that assists with recursively building
a string of the current collection and all nested collections, plus the ability
to specify culture for formatting of nested numbers and dates. Note that
this overload will change the culture of the current thread.
Declaration
public static string ToString(object obj, CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|