Algorithms..::..ToString<(Of <(<'TKey, TValue>)>)> Method (IDictionary<(Of <(<'TKey, TValue>)>)>)
Gets a string representation of the mappings in a dictionary.
The string representation starts with "{", has a list of mappings separated
by commas (", "), and ends with "}". Each mapping is represented
by "key->value". Each key and value in the dictionary 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:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public static string ToString<TKey, TValue>( IDictionary<TKey, TValue> dictionary )
Public Shared Function ToString(Of TKey, TValue) ( _ dictionary As IDictionary(Of TKey, TValue) _ ) As String
public: generic<typename TKey, typename TValue> static String^ ToString( IDictionary<TKey, TValue>^ dictionary )
Type Parameters
- TKey
- TValue
Parameters
- dictionary
- Type: IDictionary<(Of <(<'TKey, TValue>)>)>
A dictionary to get the string representation of.