ASP.NET Processing lambdas
<p>What is the code clean up needed on the following linq inorder to validate Email IDs</p>

<p><strong>Error:</strong>
 <strong><code>var validemails = emails.Where(p=&gt;IsValidFormat(p)).Select;</code></strong></p>

<pre><code> Dictionary&lt;int, string&gt; emails = new Dictionary&lt;int, string&gt;();
 emails.Add(1, "Marry@yahoo.com");
 emails.Add(2, "Helan@gmail.com");
 emails.Add(3, "Rose");
 emails.Add(4, "Ana");
 emails.Add(5, "Dhia@yahoo.com");




public static bool IsValidFormat(string InputEmailID)

{
    var format =
                 @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}.\.[0-9]{1,3}\.)|
                 (([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";

                  Regex Rex=new Regex(format);
                  return Rex.IsMatch(InputEmailID);

 }
</code></pre>

<p><strong>Error Report :</strong>
Can not convert from 'System.Collections.Generic.KeyValuePair' to 'string'</p>
