title: return LINQ Query result in IList and read it another class
body: <p>I am using ASP.NET mvc 5. I have one class that holds all the LINQ which can access to another class. now i convert the LINQ query to list variable Query and returning as IList... the i create object of this class--> call the method and get result. </p>
  
  <p>now i can see in debugging object names but i can't see in foreach loop. my list hold mix data types, plus result is merging from different tables...</p>
  
  <pre><code>  public IList GetAllFeeZonesForFeeSchemeByID(int FeeSchemeID) 
      {
  
          using (var db = new QualificationContext())
          {
             var Query = from a in db.FeeScheme
                          join b in db.FeeZoneSchema.Where(c =&gt; c.FeeSchemeID == 1) on a.FeeSchemeID equals b.FeeSchemeID
                          join c in db.FeeZone on b.FeeZoneID equals c.FeeZoneID
                          select new
                          {
                              FeeScheme = a.FeeSchemeID,
                              FeeZone = b.FeeZoneID,
                              FeeZone_Description = c.FeeZoneDescription
                          };
  
             return Query.ToList();             
          }   
      }
  </code></pre>
  
  <h2>in controller class...</h2>
  
  <pre><code> foreach(var item in obj1.GetAllFeeZonesForFeeSchemeByID(1))
          {
             item.???? (can't access the object here....
  
          }
  </code></pre>
  
  <p>many thanks</p>