Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

What is the best way to iterate over a Dictionary in C#?

      
            
                
            
 run  | edit  | history  | help 0
foreach(KeyValuePair<string, string> entry in myDic)
{
    // do something with entry.Value or entry.Key
}

Taken From StackOverflow

  by  HackerExecute, 1 years ago




Please log in to post a comment.
Ty
1