Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After adding a dataset, I get the error non invocable member cannot used like method.
here is the code
C#
public dsRateclass RatingClasslookup(LookUpType type)
{
  dsRateclass ret = null;
  try
  {
    var dataAccess = new LookUpDataAccess();
    ret = dataAccess.RatingClasslookup(type);
  }
  catch (Exception)
  {
    //TODO: Exception handling outstanding
    throw;
  }
  return ret;
}
Posted
Updated 19-Jul-12 2:06am
v2
Comments
ZurdoDev 19-Jul-12 7:59am    
I believe LookUpDataAccess is one of your functions, so how can we know why it isn't working?

1 solution

That means that "RatingClasslookup" of your dataAccess object is a Property, not a Function.
 
Share this answer
 
Comments
MarkNinja 19-Jul-12 9:27am    
thanks i figured it out after your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900