Horje
dictionary to list c# Code Example
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();
dictionary to list c#
Dictionary<string, string> dicNumber = new Dictionary<string, string>();
List<string> listNumber = new List<string>();

dicNumber.Add("1", "First");
dicNumber.Add("2", "Second");
dicNumber.Add("3", "Third");

listNumber = dicNumber.Select(kvp => kvp.Key).ToList();
// Or:
listNumber = dicNumber.Keys.ToList();




Csharp

Related
how to store user input into list c# Code Example how to store user input into list c# Code Example
recursive reverse linked list Code Example recursive reverse linked list Code Example
create new object from generic c# Code Example create new object from generic c# Code Example
qtablewidget add image Code Example qtablewidget add image Code Example
c# add to array Code Example c# add to array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12