I have a Dictionary dictionary1 and I need to convert it into a List where Data has the properties lab
Dictionary dictionary1
List
Data
lab
myDictionary.Select(x => new Data(){ label = x.Key, value = x.Value).ToList();