How do I get the data fields from an IQueryable variable?
<p>I have the following code:-</p>

<pre><code>public IQueryable GetPerson(int PersonID)
    {

        var Details = from pers in db.People
              where pers.ID == PersonID
                      select new
                          {
                              Name = item.NAME,
                              Email = item.EMAIL
                          };

        return Details
    }
</code></pre>

<p>I don't want to return a specific Type from the data access code above.</p>

<p>Then I want to do something like:</p>

<pre><code> IQueryable Person = dal.GetPerson(PersonID);
 PersonEmail = Person.EMAIL;  - but this obviously doesn't work ??
</code></pre>

<p>Any ideas on how I can get the field data from the Person IQueryable object ?</p>
