KeyValuePair<TKey,TValue>.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a string representation of the KeyValuePair<TKey,TValue>, using the string representations of the key and value.
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
Returns
A string representation of the KeyValuePair<TKey,TValue>, which includes the string representations of the key and value.
Remarks
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 ToString method for a KeyValuePair<TKey,TValue> structure with the string Key "Test" and the integer Value 14 returns the string "[Test, 14]".
Note
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.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για