Following code giving me \'Evaluation of lambda expressions is not valid in the debugger\'. Please suggest where I am doing wrong from below -
List
You will get a compiler error simply trying to convert a dictionary's values to a list with ToList():
Dictionary dict = new Dictionary(); var result = dict.Values.ToList();
Unless you include "using System.Linq" in your file.