title: is a 'variable' but is used like a 'method'
body: <p>I attempted to search for a solution on google and on SO but was not able to resolve my issue.</p>
  
  <p>My code is:</p>
  
  <pre><code>    try
      {
          objEmployerAuditReportData empAuditData = new objEmployerAuditReportData();
          IList&lt;EmployerAuditReport&gt; listAuditBatchList = empAuditData.GetAuditBatchList();
  
          foreach (var batchList in listAuditBatchList)
          {
              IList&lt;EmployerAuditReport&gt; listAuditBatchDetails = empAuditData.GetAuditBatchDetails(listAuditBatchList("form_request_id"));
          }
  
          string PDFexportFileName="";
          string PDFexportFilePath = System.Configuration.ConfigurationManager.AppSettings["PDFReportPath"];
  
      }
      catch (Exception ex)
      {
          throw ex;
      }
  </code></pre>
  
  <p>error message:<br>
  <strong>'listAuditBatchList' is a 'variable' but is used like a 'method'</strong></p>
  
  <p>I know this seems very simple, but I can't figure it out. Your assistance is greatly appreciated.</p>
  
  <p><strong>UPDATE:</strong><br>
  This turned out to be an application architecture related issue. The correct solution was:  </p>
  
  <pre><code>empAuditData.GetAuditBatchDetails(batchList.&lt;propertyname&gt;)  
  </code></pre>
  
  <p>and form_request_id had to be set as a property "set" and "get"</p>