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
I assume that "no loop" actually means "i want LINQ":
List = dictionary1.Select( pair => new Data() { label = pair.Key, value = pair.Value })).ToList();