Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5996267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:04:44+00:00 2026-05-23T00:04:44+00:00

I attempted to search for a solution on google and on SO but was

  • 0

I attempted to search for a solution on google and on SO but was not able to resolve my issue.

My code is:

    try
    {
        objEmployerAuditReportData empAuditData = new objEmployerAuditReportData();
        IList<EmployerAuditReport> listAuditBatchList = empAuditData.GetAuditBatchList();

        foreach (var batchList in listAuditBatchList)
        {
            IList<EmployerAuditReport> listAuditBatchDetails = empAuditData.GetAuditBatchDetails(listAuditBatchList("form_request_id"));
        }

        string PDFexportFileName="";
        string PDFexportFilePath = System.Configuration.ConfigurationManager.AppSettings["PDFReportPath"];

    }
    catch (Exception ex)
    {
        throw ex;
    }

error message:
‘listAuditBatchList’ is a ‘variable’ but is used like a ‘method’

I know this seems very simple, but I can’t figure it out. Your assistance is greatly appreciated.

UPDATE:
This turned out to be an application architecture related issue. The correct solution was:

empAuditData.GetAuditBatchDetails(batchList.<propertyname>)  

and form_request_id had to be set as a property “set” and “get”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:04:45+00:00Added an answer on May 23, 2026 at 12:04 am

    It is where you “call” listAuditBatchList with parentheses and a string argument, "form_request_id".

    listAuditBatchList is a list of EmployerAuditReport, so there is no way to call it as a method, and no string keys if you meant listAuditBatchList["form_request_id"].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, I attempted at making my own search function which doesnt work very well.
I attempted to re-size two buttons in MSIE, so they would be extra-large but
My attempted solution was: $date = Nov 30 2009 03:00:00:000PM; echo date(F Y, strtotime($date));
If you do a search for: http://www.google.co.uk/search?q=0x57414954464F522044454C4159202730303A30303A313527&hl=en&start=30&sa=N you will see a lot of examples
I've just finished cruising the Google search results that contain all the email rants
Hey I know I been asking alot of questions.. but not much resources on
I am fairly new to development, and Visual Studio 2010. I have a solution
After lots of attempts and search I have never found a satisfactory way to
Attempted translation of the above question from non-native English to English: This is a
I attempted to open a C#/VB form in designer mode, and instead of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.