dictionary is a collection of key value and text value
example
Dictionary<int, string> obja = new Dictionary<int, string>();
obja.Add(1, "DotNet");
obja.Add(2, "Java");
obja.Add(3, "Php");
foreach(int k in obja.Keys)
{
Console.WriteLine(k);
}
foreach (string kk in obja.Values)
{
Console.WriteLine(kk);
}
gowthaman8870226416
Venky.Net, if this helps please login to Mark As Answer. |
Reply | Alert Moderator