Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dictionary #values #list
ADD COMMENT
Topic
Name
7+7 =