KeyValuePair<TKey, TValue>.ToString Method
Returns a string representation of the KeyValuePair<TKey, TValue>, using the string representations of the key and value.
Assembly: mscorlib (in mscorlib.dll)
The string representation consists of the string representations of the key and value, separated by a comma and a space, and enclosed in square brackets. For example, the method for a KeyValuePair<TKey, TValue> structure with the string Key "Test" and the integer Value 14 returns the string "[Test, 14]".
This method uses the ToString methods provided by the key and value types. Some types do not return useful or informative values for their ToString methods.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.