Following code giving me 'Evaluation of lambda expressions is not valid in the debugger'. Please suggest where I am doing wrong from below -
List<MyFieldClass> lstFiedls; lstFiedls = objDictionary.Select(item => item.Value).ToList(); Thanks,
You don't need to use Linq to get the values. The Dictionary(TKey, TValue) has a property that holds the values, Dictionary(TKey, TValue).Values:
var fields = objDictionary.Values.ToList();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With