Answers for "how to use list in dictionary in c#"

C#
1

list dictionary c#

List<Dictionary<string, string>> MyList = new List<Dictionary<string, string>>();
Posted by: Guest on December-17-2020
-1

array list dictionary c#

using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;

class Program
{
    static void Main()
    {
        Dictionary<string, int> myDictionary = new Dictionary<string, int>();

        myDictionary.Add("bob", 27);
        myDictionary.Add("fred", 33);

        int theAge = myDictionary["bob"];
    }
}
Posted by: Guest on October-26-2020

C# Answers by Framework

Browse Popular Code Answers by Language