Answers for "print out a dictionary c#"

C#
0

print out a dictionary c#

foreach (KeyValuePair<DateTime, string> kvp in dictionary)
{
    //textBox3.Text += ("Key = {0}, Value = {1}", kvp.Key, kvp.Value);
    Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value);
}
Posted by: Guest on February-03-2022

C# Answers by Framework

Browse Popular Code Answers by Language