Answers for "list of values in dictionary c#"

C#
1

c# dictionary values to list

var items = myDictionary.Values.ToList();

//Use Linq if you want to flattern your lists
var items = myDictionary.SelectMany (d => d.Value).ToList();
Posted by: Guest on July-03-2021
0

list dictionary c#

List<Dictionary<string, string>> MyList = new List<Dictionary<string, string>>();
Posted by: Guest on December-17-2020

Code answers related to "list of values in dictionary c#"

C# Answers by Framework

Browse Popular Code Answers by Language