Answers for "c# dict get value list"

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

C# Answers by Framework

Browse Popular Code Answers by Language