I want to convert my LiNQ result to Dictionary
<p>For example this is my query </p>

<pre><code>var result = (from D in dbcontext.NPPES where D.NPI == item.NPI &amp;&amp; D.ProviderFirstName == item.FirstName &amp;&amp; D.ProviderLastName == item.LastName select new 
{
D.firstname,
D.lastname,
D.NPI
}).FirstOrDefault()
</code></pre>

<hr>

<p>Now i want to pass my query result to function which iterates till last column converts the result into Dictionary result 
i want my result like this </p>

<pre><code>dt["firstname"] = "john"
dt["lastname"] = "khan"
dt["NPI"]="123456"
</code></pre>

<p>What should i do in this case!
Plz Help</p>