Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
If you want to use fora for loop, you can do thisas below:
for
var keyList=new List<string>(dictionary.Keys); for (int i = 0; i < keyList.Count; i++) { var key= keyList[i]; var value = dictionary[key]; }
If you want to use for loop, you can do this:
If you want to use a for loop, you can do as below:
If you want to use for loop, you can do this