Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

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, 3 years ago




Please log in to post a comment.