When assigning a linq selection to an implicitly typed local variable "var" i receive the following error.
Error :Cannot assign method group to an implicitly-typed local variable
at
root : var mailgroup = emails.Where(p =>IsValidFormat(p.Value)).Select;
Dictionary of elements
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>();
How to correct it ?