암시 적으로 입력 한 로컬 변수 "var"에 linq 선택을 할당하면 오류가 발생하여 이 표시됩니다. 요소암시 적으로 입력 한 변수의 오류
Dictionary<int, string> emails = new Dictionary<int, string>();
emails.Add(1, "[email protected]");
emails.Add(2, "[email protected]");
emails.Add(3, "Rose");
emails.Add(4, "Ana");
emails.Add(5, "[email protected]");
Dictionary<int, string> dc = new Dictionary<int, string>();
의
root : var mailgroup = emails.Where(p =>IsValidFormat(p.Value)).Select;
사전에
Error :Cannot assign method group to an implicitly-typed local variable
어떻게 그것을 해결하기 위해?
가능한 복제본 [ASP.NET Processing lambdas] (http://stackoverflow.com/questions/1590805/asp-net-processing-lambdas) – Randolpho