Looping



foreach (System.Collections.Generic.KeyValuePair<int, string> objKeyValuePair in dicItems) 
{
   Debug.Print objKeyValuePair.Key + " - " + objKeyValuePair.Value;
}

for (int icount = 0; icount < MyDictionary.Count; icount++) 
{
   skey = MyDictionary.ElementAt(icount).Key
}

Converting to an array first

string snamesarray; 

snamesarray = dicAuthors.ToArray
for (int icount = 0; icount < MyDictionary.Count; icount++)
{
   snamesarray.GetValue(icount)
}


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext